@google-analytics/data 4.3.0 → 4.5.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # Changelog
2
2
 
3
+ ## [4.5.0](https://github.com/googleapis/google-cloud-node/compare/data-v4.4.0...data-v4.5.0) (2024-04-16)
4
+
5
+
6
+ ### Features
7
+
8
+ * [Many APIs] support GOOGLE_CLOUD_UNIVERSE_DOMAIN environment variable ([#5185](https://github.com/googleapis/google-cloud-node/issues/5185)) ([cc54e98](https://github.com/googleapis/google-cloud-node/commit/cc54e98f7f51598e88277ac50310b07b778acbc7))
9
+
10
+ ## [4.4.0](https://github.com/googleapis/google-cloud-node/compare/data-v4.3.0...data-v4.4.0) (2024-02-09)
11
+
12
+
13
+ ### Features
14
+
15
+ * Trusted Private Cloud support, use the universeDomain parameter ([#5022](https://github.com/googleapis/google-cloud-node/issues/5022)) ([b6498d8](https://github.com/googleapis/google-cloud-node/commit/b6498d8580d056817981dedbaa0ea5d82e9dccc2))
16
+
3
17
  ## [4.3.0](https://github.com/googleapis/google-cloud-node/compare/data-v4.2.0...data-v4.3.0) (2023-12-11)
4
18
 
5
19
 
@@ -87,11 +87,10 @@ service AlphaAnalyticsData {
87
87
  // https://support.google.com/analytics/answer/9267572. Audience lists contain
88
88
  // the users in each audience.
89
89
  //
90
- // This method is introduced at alpha stability with the intention of
91
- // gathering feedback on syntax and capabilities before entering beta. To give
92
- // your feedback on this API, complete the
93
- // [Google Analytics Audience Export API
94
- // Feedback](https://forms.gle/EeA5u5LW6PEggtCEA) form.
90
+ // This method is available at beta stability at
91
+ // [audienceExports.create](https://developers.google.com/analytics/devguides/reporting/data/v1/rest/v1beta/properties.audienceExports/create).
92
+ // To give your feedback on this API, complete the [Google Analytics Audience
93
+ // Export API Feedback](https://forms.gle/EeA5u5LW6PEggtCEA) form.
95
94
  rpc CreateAudienceList(CreateAudienceListRequest)
96
95
  returns (google.longrunning.Operation) {
97
96
  option (google.api.http) = {
@@ -119,11 +118,10 @@ service AlphaAnalyticsData {
119
118
  // that are important to your business. To learn more, see
120
119
  // https://support.google.com/analytics/answer/9267572.
121
120
  //
122
- // This method is introduced at alpha stability with the intention of
123
- // gathering feedback on syntax and capabilities before entering beta. To give
124
- // your feedback on this API, complete the
125
- // [Google Analytics Audience Export API
126
- // Feedback](https://forms.gle/EeA5u5LW6PEggtCEA) form.
121
+ // This method is available at beta stability at
122
+ // [audienceExports.query](https://developers.google.com/analytics/devguides/reporting/data/v1/rest/v1beta/properties.audienceExports/query).
123
+ // To give your feedback on this API, complete the [Google Analytics Audience
124
+ // Export API Feedback](https://forms.gle/EeA5u5LW6PEggtCEA) form.
127
125
  rpc QueryAudienceList(QueryAudienceListRequest)
128
126
  returns (QueryAudienceListResponse) {
129
127
  option (google.api.http) = {
@@ -168,9 +166,9 @@ service AlphaAnalyticsData {
168
166
  // List](https://developers.google.com/analytics/devguides/reporting/data/v1/audience-list-basics)
169
167
  // for an introduction to Audience Lists with examples.
170
168
  //
171
- // This method is introduced at alpha stability with the intention of
172
- // gathering feedback on syntax and capabilities before entering beta. To give
173
- // your feedback on this API, complete the
169
+ // This method is available at beta stability at
170
+ // [audienceExports.get](https://developers.google.com/analytics/devguides/reporting/data/v1/rest/v1beta/properties.audienceExports/get).
171
+ // To give your feedback on this API, complete the
174
172
  // [Google Analytics Audience Export API
175
173
  // Feedback](https://forms.gle/EeA5u5LW6PEggtCEA) form.
176
174
  rpc GetAudienceList(GetAudienceListRequest) returns (AudienceList) {
@@ -189,9 +187,9 @@ service AlphaAnalyticsData {
189
187
  // List](https://developers.google.com/analytics/devguides/reporting/data/v1/audience-list-basics)
190
188
  // for an introduction to Audience Lists with examples.
191
189
  //
192
- // This method is introduced at alpha stability with the intention of
193
- // gathering feedback on syntax and capabilities before entering beta. To give
194
- // your feedback on this API, complete the
190
+ // This method is available at beta stability at
191
+ // [audienceExports.list](https://developers.google.com/analytics/devguides/reporting/data/v1/rest/v1beta/properties.audienceExports/list).
192
+ // To give your feedback on this API, complete the
195
193
  // [Google Analytics Audience Export API
196
194
  // Feedback](https://forms.gle/EeA5u5LW6PEggtCEA) form.
197
195
  rpc ListAudienceLists(ListAudienceListsRequest)
@@ -344,6 +342,75 @@ message RecurringAudienceList {
344
342
  // This list is ordered with the most recently created audience list first.
345
343
  repeated string audience_lists = 6
346
344
  [(google.api.field_behavior) = OUTPUT_ONLY];
345
+
346
+ // Optional. Configures webhook notifications to be sent from the Google
347
+ // Analytics Data API to your webhook server. Use of webhooks is optional. If
348
+ // unused, you'll need to poll this API to determine when a recurring audience
349
+ // list creates new audience lists. Webhooks allow a notification to be sent
350
+ // to your servers & avoid the need for polling.
351
+ //
352
+ // Two POST requests will be sent each time a recurring audience list creates
353
+ // an audience list. This happens once per day until a recurring audience list
354
+ // reaches 0 active days remaining. The first request will be sent showing a
355
+ // newly created audience list in its CREATING state. The second request will
356
+ // be sent after the audience list completes creation (either the ACTIVE or
357
+ // FAILED state).
358
+ optional WebhookNotification webhook_notification = 8
359
+ [(google.api.field_behavior) = OPTIONAL];
360
+ }
361
+
362
+ // Configures a long-running operation resource to send a webhook notification
363
+ // from the Google Analytics Data API to your webhook server when the resource
364
+ // updates.
365
+ //
366
+ // Notification configurations contain private values & are only visible to your
367
+ // GCP project. Different GCP projects may attach different webhook
368
+ // notifications to the same long-running operation resource.
369
+ message WebhookNotification {
370
+ // Optional. The web address that will receive the webhook notification. This
371
+ // address will receive POST requests as the state of the long running
372
+ // operation resource changes. The POST request will contain both a JSON
373
+ // version of the long running operation resource in the body and a
374
+ // `sentTimestamp` field. The sent timestamp will specify the unix
375
+ // microseconds since the epoch that the request was sent; this lets you
376
+ // identify replayed notifications.
377
+ //
378
+ // An example URI is
379
+ // `https://us-central1-example-project-id.cloudfunctions.net/example-function-1`.
380
+ //
381
+ // The URI must use HTTPS and point to a site with a valid SSL certificate on
382
+ // the web server. The URI must have a maximum string length of 128 characters
383
+ // & use only the allowlisted characters from [RFC
384
+ // 1738](https://www.rfc-editor.org/rfc/rfc1738).
385
+ //
386
+ // When your webhook server receives a notification, it is expected to reply
387
+ // with an HTTP response status code of 200 within 5 seconds.
388
+ //
389
+ // A URI is required to use webhook notifications.
390
+ //
391
+ // Requests to this webhook server will contain an ID token authenticating the
392
+ // service account
393
+ // `google-analytics-audience-export@system.gserviceaccount.com`. To learn
394
+ // more about ID tokens, see
395
+ // https://cloud.google.com/docs/authentication/token-types#id. For Google
396
+ // Cloud Functions, this lets you configure your function to require
397
+ // authentication. In Cloud IAM, you will need to grant the service account
398
+ // permissions to the Cloud Run Invoker (`roles/run.invoker`) & Cloud
399
+ // Functions Invoker (`roles/cloudfunctions.invoker`) roles for the webhook
400
+ // post request to pass Google Cloud Functions authentication. This API can
401
+ // send webhook notifications to arbitrary URIs; for webhook servers other
402
+ // than Google Cloud Functions, this ID token in the authorization bearer
403
+ // header should be ignored if it is not needed.
404
+ optional string uri = 1 [(google.api.field_behavior) = OPTIONAL];
405
+
406
+ // Optional. The channel token is an arbitrary string value and must have a
407
+ // maximum string length of 64 characters. Channel tokens allow you to verify
408
+ // the source of a webhook notification. This guards against the message being
409
+ // spoofed. The channel token will be specified in the `X-Goog-Channel-Token`
410
+ // HTTP header of the webhook POST request.
411
+ //
412
+ // A channel token is not required to use webhook notifications.
413
+ optional string channel_token = 2 [(google.api.field_behavior) = OPTIONAL];
347
414
  }
348
415
 
349
416
  // A request to retrieve configuration metadata about a specific recurring
@@ -547,6 +614,24 @@ message AudienceList {
547
614
  // recurring audience list, and this field will be blank.
548
615
  optional string recurring_audience_list = 12
549
616
  [(google.api.field_behavior) = OUTPUT_ONLY];
617
+
618
+ // Optional. Configures webhook notifications to be sent from the Google
619
+ // Analytics Data API to your webhook server. Use of webhooks is optional. If
620
+ // unused, you'll need to poll this API to determine when an audience list is
621
+ // ready to be used. Webhooks allow a notification to be sent to your servers
622
+ // & avoid the need for polling.
623
+ //
624
+ // Either one or two POST requests will be sent to the webhook. The first POST
625
+ // request will be sent immediately showing the newly created audience list in
626
+ // its CREATING state. The second POST request will be sent after the audience
627
+ // list completes creation (either the ACTIVE or FAILED state).
628
+ //
629
+ // If identical audience lists are requested in quick succession, the second &
630
+ // subsequent audience lists can be served from cache. In that case, the
631
+ // audience list create method can return an audience list is already ACTIVE.
632
+ // In this scenario, only one POST request will be sent to the webhook.
633
+ optional WebhookNotification webhook_notification = 13
634
+ [(google.api.field_behavior) = OPTIONAL];
550
635
  }
551
636
 
552
637
  // This metadata is currently blank.