Skip to content
This repository was archived by the owner on Sep 19, 2023. It is now read-only.

Commit 655a893

Browse files
fix: add https://www.googleapis.com/auth/analytics.edit OAuth2 scope to the list of acceptable scopes for all read only methods of the Admin API docs: update the documentation of the update_mask` field used by Update() methods (#81)
PiperOrigin-RevId: 359531616 Source-Author: Google APIs <noreply@google.com> Source-Date: Thu Feb 25 08:46:37 2021 -0800 Source-Repo: googleapis/googleapis Source-Sha: 2a9e7295e6fe864d0a748ff5a7c44d2da6e6d15a Source-Link: googleapis/googleapis@2a9e729
1 parent 8242432 commit 655a893

4 files changed

Lines changed: 89 additions & 57 deletions

File tree

protos/google/analytics/admin/v1alpha/analytics_admin.proto

Lines changed: 43 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2020 Google LLC
1+
// Copyright 2021 Google LLC
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.
@@ -358,7 +358,15 @@ service AnalyticsAdminService {
358358
option (google.api.method_signature) = "ios_app_data_stream,update_mask";
359359
}
360360

361-
// Creates an iOS app data stream with the specified location and attributes.
361+
// Creates an iOS app stream with the specified location and attributes.
362+
//
363+
// Note that an iOS app stream must be linked to a Firebase app to receive
364+
// traffic.
365+
//
366+
// To create a working app stream, make sure your property is linked to a
367+
// Firebase project. Then, use the Firebase API to create a Firebase app,
368+
// which will also create an appropriate data stream in Analytics (may take up
369+
// to 24 hours).
362370
rpc CreateIosAppDataStream(CreateIosAppDataStreamRequest) returns (IosAppDataStream) {
363371
option (google.api.http) = {
364372
post: "/v1alpha/{parent=properties/*}/iosAppDataStreams"
@@ -403,7 +411,15 @@ service AnalyticsAdminService {
403411
option (google.api.method_signature) = "android_app_data_stream,update_mask";
404412
}
405413

406-
// Creates an android app stream with the specified location and attributes.
414+
// Creates an Android app stream with the specified location and attributes.
415+
//
416+
// Note that an Android app stream must be linked to a Firebase app to receive
417+
// traffic.
418+
//
419+
// To create a working app stream, make sure your property is linked to a
420+
// Firebase project. Then, use the Firebase API to create a Firebase app,
421+
// which will also create an appropriate data stream in Analytics (may take up
422+
// to 24 hours).
407423
rpc CreateAndroidAppDataStream(CreateAndroidAppDataStreamRequest) returns (AndroidAppDataStream) {
408424
option (google.api.http) = {
409425
post: "/v1alpha/{parent=properties/*}/androidAppDataStreams"
@@ -596,9 +612,9 @@ message UpdateAccountRequest {
596612
// The account's `name` field is used to identify the account.
597613
Account account = 1 [(google.api.field_behavior) = REQUIRED];
598614

599-
// Required. The list of fields to be updated. Omitted fields will not be updated.
600-
// To replace the entire entity, use one path with the string "*" to match
601-
// all fields.
615+
// Required. The list of fields to be updated. Field names must be in snake case
616+
// (e.g., "field_to_update"). Omitted fields will not be updated. To replace
617+
// the entire entity, use one path with the string "*" to match all fields.
602618
google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = REQUIRED];
603619
}
604620

@@ -683,9 +699,9 @@ message UpdatePropertyRequest {
683699
// updated.
684700
Property property = 1 [(google.api.field_behavior) = REQUIRED];
685701

686-
// Required. The list of fields to be updated. Omitted fields will not be updated.
687-
// To replace the entire entity, use one path with the string "*" to match
688-
// all fields.
702+
// Required. The list of fields to be updated. Field names must be in snake case
703+
// (e.g., "field_to_update"). Omitted fields will not be updated. To replace
704+
// the entire entity, use one path with the string "*" to match all fields.
689705
google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = REQUIRED];
690706
}
691707

@@ -962,9 +978,9 @@ message UpdateWebDataStreamRequest {
962978
// The `name` field is used to identify the web stream to be updated.
963979
WebDataStream web_data_stream = 1 [(google.api.field_behavior) = REQUIRED];
964980

965-
// Required. The list of fields to be updated. Omitted fields will not be updated.
966-
// To replace the entire entity, use one path with the string "*" to match
967-
// all fields.
981+
// Required. The list of fields to be updated. Field names must be in snake case
982+
// (e.g., "field_to_update"). Omitted fields will not be updated. To replace
983+
// the entire entity, use one path with the string "*" to match all fields.
968984
google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = REQUIRED];
969985
}
970986

@@ -1049,9 +1065,9 @@ message UpdateIosAppDataStreamRequest {
10491065
// The `name` field is used to identify the iOS app stream to be updated.
10501066
IosAppDataStream ios_app_data_stream = 1 [(google.api.field_behavior) = REQUIRED];
10511067

1052-
// Required. The list of fields to be updated. Omitted fields will not be updated.
1053-
// To replace the entire entity, use one path with the string "*" to match
1054-
// all fields.
1068+
// Required. The list of fields to be updated. Field names must be in snake case
1069+
// (e.g., "field_to_update"). Omitted fields will not be updated. To replace
1070+
// the entire entity, use one path with the string "*" to match all fields.
10551071
google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = REQUIRED];
10561072
}
10571073

@@ -1136,9 +1152,9 @@ message UpdateAndroidAppDataStreamRequest {
11361152
// The `name` field is used to identify the android app stream to be updated.
11371153
AndroidAppDataStream android_app_data_stream = 1 [(google.api.field_behavior) = REQUIRED];
11381154

1139-
// Required. The list of fields to be updated. Omitted fields will not be updated.
1140-
// To replace the entire entity, use one path with the string "*" to match
1141-
// all fields.
1155+
// Required. The list of fields to be updated. Field names must be in snake case
1156+
// (e.g., "field_to_update"). Omitted fields will not be updated. To replace
1157+
// the entire entity, use one path with the string "*" to match all fields.
11421158
google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = REQUIRED];
11431159
}
11441160

@@ -1213,9 +1229,9 @@ message UpdateEnhancedMeasurementSettingsRequest {
12131229
// The `name` field is used to identify the settings to be updated.
12141230
EnhancedMeasurementSettings enhanced_measurement_settings = 1 [(google.api.field_behavior) = REQUIRED];
12151231

1216-
// Required. The list of fields to be updated. Omitted fields will not be updated.
1217-
// To replace the entire entity, use one path with the string "*" to match
1218-
// all fields.
1232+
// Required. The list of fields to be updated. Field names must be in snake case
1233+
// (e.g., "field_to_update"). Omitted fields will not be updated. To replace
1234+
// the entire entity, use one path with the string "*" to match all fields.
12191235
google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = REQUIRED];
12201236
}
12211237

@@ -1239,9 +1255,9 @@ message UpdateFirebaseLinkRequest {
12391255
// Required. The Firebase link to update.
12401256
FirebaseLink firebase_link = 1 [(google.api.field_behavior) = REQUIRED];
12411257

1242-
// Required. The list of fields to be updated. Omitted fields will not be updated.
1243-
// To replace the entire entity, use one path with the string "*" to match
1244-
// all fields.
1258+
// Required. The list of fields to be updated. Field names must be in snake case
1259+
// (e.g., "field_to_update"). Omitted fields will not be updated. To replace
1260+
// the entire entity, use one path with the string "*" to match all fields.
12451261
google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = REQUIRED];
12461262
}
12471263

@@ -1326,9 +1342,9 @@ message UpdateGoogleAdsLinkRequest {
13261342
// The GoogleAdsLink to update
13271343
GoogleAdsLink google_ads_link = 1;
13281344

1329-
// Required. The list of fields to be updated. Omitted fields will not be updated.
1330-
// To replace the entire entity, use one path with the string "*" to match
1331-
// all fields.
1345+
// Required. The list of fields to be updated. Field names must be in snake case
1346+
// (e.g., "field_to_update"). Omitted fields will not be updated. To replace
1347+
// the entire entity, use one path with the string "*" to match all fields.
13321348
google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = REQUIRED];
13331349
}
13341350

protos/google/analytics/admin/v1alpha/resources.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2020 Google LLC
1+
// Copyright 2021 Google LLC
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.

src/v1alpha/analytics_admin_service_client.ts

Lines changed: 42 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -683,9 +683,9 @@ export class AnalyticsAdminServiceClient {
683683
* Required. The account to update.
684684
* The account's `name` field is used to identify the account.
685685
* @param {google.protobuf.FieldMask} request.updateMask
686-
* Required. The list of fields to be updated. Omitted fields will not be updated.
687-
* To replace the entire entity, use one path with the string "*" to match
688-
* all fields.
686+
* Required. The list of fields to be updated. Field names must be in snake case
687+
* (e.g., "field_to_update"). Omitted fields will not be updated. To replace
688+
* the entire entity, use one path with the string "*" to match all fields.
689689
* @param {object} [options]
690690
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
691691
* @returns {Promise} - The promise which resolves to an array.
@@ -1163,9 +1163,9 @@ export class AnalyticsAdminServiceClient {
11631163
* The property's `name` field is used to identify the property to be
11641164
* updated.
11651165
* @param {google.protobuf.FieldMask} request.updateMask
1166-
* Required. The list of fields to be updated. Omitted fields will not be updated.
1167-
* To replace the entire entity, use one path with the string "*" to match
1168-
* all fields.
1166+
* Required. The list of fields to be updated. Field names must be in snake case
1167+
* (e.g., "field_to_update"). Omitted fields will not be updated. To replace
1168+
* the entire entity, use one path with the string "*" to match all fields.
11691169
* @param {object} [options]
11701170
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
11711171
* @returns {Promise} - The promise which resolves to an array.
@@ -2264,9 +2264,9 @@ export class AnalyticsAdminServiceClient {
22642264
* Required. The web stream to update.
22652265
* The `name` field is used to identify the web stream to be updated.
22662266
* @param {google.protobuf.FieldMask} request.updateMask
2267-
* Required. The list of fields to be updated. Omitted fields will not be updated.
2268-
* To replace the entire entity, use one path with the string "*" to match
2269-
* all fields.
2267+
* Required. The list of fields to be updated. Field names must be in snake case
2268+
* (e.g., "field_to_update"). Omitted fields will not be updated. To replace
2269+
* the entire entity, use one path with the string "*" to match all fields.
22702270
* @param {object} [options]
22712271
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
22722272
* @returns {Promise} - The promise which resolves to an array.
@@ -2672,9 +2672,9 @@ export class AnalyticsAdminServiceClient {
26722672
* Required. The iOS app stream to update.
26732673
* The `name` field is used to identify the iOS app stream to be updated.
26742674
* @param {google.protobuf.FieldMask} request.updateMask
2675-
* Required. The list of fields to be updated. Omitted fields will not be updated.
2676-
* To replace the entire entity, use one path with the string "*" to match
2677-
* all fields.
2675+
* Required. The list of fields to be updated. Field names must be in snake case
2676+
* (e.g., "field_to_update"). Omitted fields will not be updated. To replace
2677+
* the entire entity, use one path with the string "*" to match all fields.
26782678
* @param {object} [options]
26792679
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
26802680
* @returns {Promise} - The promise which resolves to an array.
@@ -2771,7 +2771,15 @@ export class AnalyticsAdminServiceClient {
27712771
>
27722772
): void;
27732773
/**
2774-
* Creates an iOS app data stream with the specified location and attributes.
2774+
* Creates an iOS app stream with the specified location and attributes.
2775+
*
2776+
* Note that an iOS app stream must be linked to a Firebase app to receive
2777+
* traffic.
2778+
*
2779+
* To create a working app stream, make sure your property is linked to a
2780+
* Firebase project. Then, use the Firebase API to create a Firebase app,
2781+
* which will also create an appropriate data stream in Analytics (may take up
2782+
* to 24 hours).
27752783
*
27762784
* @param {Object} request
27772785
* The request object that will be sent.
@@ -3092,9 +3100,9 @@ export class AnalyticsAdminServiceClient {
30923100
* Required. The android app stream to update.
30933101
* The `name` field is used to identify the android app stream to be updated.
30943102
* @param {google.protobuf.FieldMask} request.updateMask
3095-
* Required. The list of fields to be updated. Omitted fields will not be updated.
3096-
* To replace the entire entity, use one path with the string "*" to match
3097-
* all fields.
3103+
* Required. The list of fields to be updated. Field names must be in snake case
3104+
* (e.g., "field_to_update"). Omitted fields will not be updated. To replace
3105+
* the entire entity, use one path with the string "*" to match all fields.
30983106
* @param {object} [options]
30993107
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
31003108
* @returns {Promise} - The promise which resolves to an array.
@@ -3191,7 +3199,15 @@ export class AnalyticsAdminServiceClient {
31913199
>
31923200
): void;
31933201
/**
3194-
* Creates an android app stream with the specified location and attributes.
3202+
* Creates an Android app stream with the specified location and attributes.
3203+
*
3204+
* Note that an Android app stream must be linked to a Firebase app to receive
3205+
* traffic.
3206+
*
3207+
* To create a working app stream, make sure your property is linked to a
3208+
* Firebase project. Then, use the Firebase API to create a Firebase app,
3209+
* which will also create an appropriate data stream in Analytics (may take up
3210+
* to 24 hours).
31953211
*
31963212
* @param {Object} request
31973213
* The request object that will be sent.
@@ -3413,9 +3429,9 @@ export class AnalyticsAdminServiceClient {
34133429
* Required. The settings to update.
34143430
* The `name` field is used to identify the settings to be updated.
34153431
* @param {google.protobuf.FieldMask} request.updateMask
3416-
* Required. The list of fields to be updated. Omitted fields will not be updated.
3417-
* To replace the entire entity, use one path with the string "*" to match
3418-
* all fields.
3432+
* Required. The list of fields to be updated. Field names must be in snake case
3433+
* (e.g., "field_to_update"). Omitted fields will not be updated. To replace
3434+
* the entire entity, use one path with the string "*" to match all fields.
34193435
* @param {object} [options]
34203436
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
34213437
* @returns {Promise} - The promise which resolves to an array.
@@ -3623,9 +3639,9 @@ export class AnalyticsAdminServiceClient {
36233639
* @param {google.analytics.admin.v1alpha.FirebaseLink} request.firebaseLink
36243640
* Required. The Firebase link to update.
36253641
* @param {google.protobuf.FieldMask} request.updateMask
3626-
* Required. The list of fields to be updated. Omitted fields will not be updated.
3627-
* To replace the entire entity, use one path with the string "*" to match
3628-
* all fields.
3642+
* Required. The list of fields to be updated. Field names must be in snake case
3643+
* (e.g., "field_to_update"). Omitted fields will not be updated. To replace
3644+
* the entire entity, use one path with the string "*" to match all fields.
36293645
* @param {object} [options]
36303646
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
36313647
* @returns {Promise} - The promise which resolves to an array.
@@ -4026,9 +4042,9 @@ export class AnalyticsAdminServiceClient {
40264042
* @param {google.analytics.admin.v1alpha.GoogleAdsLink} request.googleAdsLink
40274043
* The GoogleAdsLink to update
40284044
* @param {google.protobuf.FieldMask} request.updateMask
4029-
* Required. The list of fields to be updated. Omitted fields will not be updated.
4030-
* To replace the entire entity, use one path with the string "*" to match
4031-
* all fields.
4045+
* Required. The list of fields to be updated. Field names must be in snake case
4046+
* (e.g., "field_to_update"). Omitted fields will not be updated. To replace
4047+
* the entire entity, use one path with the string "*" to match all fields.
40324048
* @param {object} [options]
40334049
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
40344050
* @returns {Promise} - The promise which resolves to an array.

synth.metadata

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@
44
"git": {
55
"name": ".",
66
"remote": "https://github.com/googleapis/nodejs-analytics-admin.git",
7-
"sha": "a264ca93f5ef4d53df02ae3ce632566e4f17764e"
7+
"sha": "8242432db044fbf0f51c1b45ecdbf91bf2311aaa"
88
}
99
},
1010
{
1111
"git": {
1212
"name": "googleapis",
1313
"remote": "https://github.com/googleapis/googleapis.git",
14-
"sha": "23e7356f4cf449d6e9977698c5d9383b566be7af",
15-
"internalRef": "351651504"
14+
"sha": "2a9e7295e6fe864d0a748ff5a7c44d2da6e6d15a",
15+
"internalRef": "359531616"
1616
}
1717
},
1818
{

0 commit comments

Comments
 (0)