@maxim_mazurok/gapi.client.analyticsadmin-v1alpha 0.0.20230202 → 0.0.20230212

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.
Files changed (3) hide show
  1. package/index.d.ts +1125 -195
  2. package/package.json +1 -1
  3. package/tests.ts +171 -1
package/index.d.ts CHANGED
@@ -9,7 +9,7 @@
9
9
  // This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
10
10
  // In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
11
11
  // Generated from: https://analyticsadmin.googleapis.com/$discovery/rest?version=v1alpha
12
- // Revision: 20230202
12
+ // Revision: 20230212
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -28,6 +28,20 @@ declare namespace gapi.client {
28
28
  /** Ends with this number. */
29
29
  toValue?: GoogleAnalyticsAdminV1alphaNumericValue;
30
30
  }
31
+ interface GoogleAnalyticsAdminV1alphaAccessBinding {
32
+ /**
33
+ * Output only. Resource name of this binding. Format: accounts/{account}/accessBindings/{access_binding} or properties/{property}/accessBindings/{access_binding} Example:
34
+ * "accounts/100/accessBindings/200"
35
+ */
36
+ name?: string;
37
+ /**
38
+ * A list of roles for to grant to the parent resource. Valid values: predefinedRoles/viewer predefinedRoles/analyst predefinedRoles/editor predefinedRoles/admin
39
+ * predefinedRoles/no-cost-data predefinedRoles/no-revenue-data For users, if an empty list of roles is set, this AccessBinding will be deleted.
40
+ */
41
+ roles?: string[];
42
+ /** If set, the email address of the user to set roles for. Format: "someuser@gmail.com" */
43
+ user?: string;
44
+ }
31
45
  interface GoogleAnalyticsAdminV1alphaAccessDateRange {
32
46
  /**
33
47
  * The inclusive end date for the query in the format `YYYY-MM-DD`. Cannot be before `startDate`. The format `NdaysAgo`, `yesterday`, or `today` is also accepted, and in that case, the
@@ -406,6 +420,14 @@ declare namespace gapi.client {
406
420
  /** List of AuditUserLinks. These will be ordered stably, but in an arbitrary order. */
407
421
  userLinks?: GoogleAnalyticsAdminV1alphaAuditUserLink[];
408
422
  }
423
+ interface GoogleAnalyticsAdminV1alphaBatchCreateAccessBindingsRequest {
424
+ /** Required. The requests specifying the access bindings to create. A maximum of 1000 access bindings can be created in a batch. */
425
+ requests?: GoogleAnalyticsAdminV1alphaCreateAccessBindingRequest[];
426
+ }
427
+ interface GoogleAnalyticsAdminV1alphaBatchCreateAccessBindingsResponse {
428
+ /** The access bindings created. */
429
+ accessBindings?: GoogleAnalyticsAdminV1alphaAccessBinding[];
430
+ }
409
431
  interface GoogleAnalyticsAdminV1alphaBatchCreateUserLinksRequest {
410
432
  /**
411
433
  * Optional. If set, then email the new users notifying them that they've been granted permissions to the resource. Regardless of whether this is set or not, notify_new_user field
@@ -419,14 +441,30 @@ declare namespace gapi.client {
419
441
  /** The user links created. */
420
442
  userLinks?: GoogleAnalyticsAdminV1alphaUserLink[];
421
443
  }
444
+ interface GoogleAnalyticsAdminV1alphaBatchDeleteAccessBindingsRequest {
445
+ /** Required. The requests specifying the access bindings to delete. A maximum of 1000 access bindings can be deleted in a batch. */
446
+ requests?: GoogleAnalyticsAdminV1alphaDeleteAccessBindingRequest[];
447
+ }
422
448
  interface GoogleAnalyticsAdminV1alphaBatchDeleteUserLinksRequest {
423
449
  /** Required. The requests specifying the user links to update. A maximum of 1000 user links can be updated in a batch. */
424
450
  requests?: GoogleAnalyticsAdminV1alphaDeleteUserLinkRequest[];
425
451
  }
452
+ interface GoogleAnalyticsAdminV1alphaBatchGetAccessBindingsResponse {
453
+ /** The requested access bindings. */
454
+ accessBindings?: GoogleAnalyticsAdminV1alphaAccessBinding[];
455
+ }
426
456
  interface GoogleAnalyticsAdminV1alphaBatchGetUserLinksResponse {
427
457
  /** The requested user links. */
428
458
  userLinks?: GoogleAnalyticsAdminV1alphaUserLink[];
429
459
  }
460
+ interface GoogleAnalyticsAdminV1alphaBatchUpdateAccessBindingsRequest {
461
+ /** Required. The requests specifying the access bindings to update. A maximum of 1000 access bindings can be updated in a batch. */
462
+ requests?: GoogleAnalyticsAdminV1alphaUpdateAccessBindingRequest[];
463
+ }
464
+ interface GoogleAnalyticsAdminV1alphaBatchUpdateAccessBindingsResponse {
465
+ /** The access bindings updated. */
466
+ accessBindings?: GoogleAnalyticsAdminV1alphaAccessBinding[];
467
+ }
430
468
  interface GoogleAnalyticsAdminV1alphaBatchUpdateUserLinksRequest {
431
469
  /** Required. The requests specifying the user links to update. A maximum of 1000 user links can be updated in a batch. */
432
470
  requests?: GoogleAnalyticsAdminV1alphaUpdateUserLinkRequest[];
@@ -538,6 +576,12 @@ declare namespace gapi.client {
538
576
  /** Output only. Resource name of this conversion event. Format: properties/{property}/conversionEvents/{conversion_event} */
539
577
  name?: string;
540
578
  }
579
+ interface GoogleAnalyticsAdminV1alphaCreateAccessBindingRequest {
580
+ /** Required. The access binding to create. */
581
+ accessBinding?: GoogleAnalyticsAdminV1alphaAccessBinding;
582
+ /** Required. Formats: - accounts/{account} - properties/{property} */
583
+ parent?: string;
584
+ }
541
585
  interface GoogleAnalyticsAdminV1alphaCreateUserLinkRequest {
542
586
  /** Optional. If set, then email the new user notifying them that they've been granted permissions to the resource. */
543
587
  notifyNewUser?: boolean;
@@ -652,6 +696,10 @@ declare namespace gapi.client {
652
696
  /** Output only. Analytics "Measurement ID", without the "G-" prefix. Example: "G-1A2BCD345E" would just be "1A2BCD345E" */
653
697
  measurementId?: string;
654
698
  }
699
+ interface GoogleAnalyticsAdminV1alphaDeleteAccessBindingRequest {
700
+ /** Required. Formats: - accounts/{account}/accessBindings/{accessBinding} - properties/{property}/accessBindings/{accessBinding} */
701
+ name?: string;
702
+ }
655
703
  interface GoogleAnalyticsAdminV1alphaDeleteUserLinkRequest {
656
704
  /** Required. Example format: accounts/1234/userLinks/5678 */
657
705
  name?: string;
@@ -835,6 +883,12 @@ declare namespace gapi.client {
835
883
  /** Output only. The email address of the user that proposed this linkage. */
836
884
  requestorEmail?: string;
837
885
  }
886
+ interface GoogleAnalyticsAdminV1alphaListAccessBindingsResponse {
887
+ /** List of AccessBindings. These will be ordered stably, but in an arbitrary order. */
888
+ accessBindings?: GoogleAnalyticsAdminV1alphaAccessBinding[];
889
+ /** A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. */
890
+ nextPageToken?: string;
891
+ }
838
892
  interface GoogleAnalyticsAdminV1alphaListAccountsResponse {
839
893
  /** Results that were accessible to the caller. */
840
894
  accounts?: GoogleAnalyticsAdminV1alphaAccount[];
@@ -1140,6 +1194,10 @@ declare namespace gapi.client {
1140
1194
  // tslint:disable-next-line:no-empty-interface
1141
1195
  interface GoogleAnalyticsAdminV1alphaSetAutomatedGa4ConfigurationOptOutResponse {
1142
1196
  }
1197
+ interface GoogleAnalyticsAdminV1alphaUpdateAccessBindingRequest {
1198
+ /** Required. The access binding to update. */
1199
+ accessBinding?: GoogleAnalyticsAdminV1alphaAccessBinding;
1200
+ }
1143
1201
  interface GoogleAnalyticsAdminV1alphaUpdateUserLinkRequest {
1144
1202
  /** Required. The user link to update. */
1145
1203
  userLink?: GoogleAnalyticsAdminV1alphaUserLink;
@@ -1159,68 +1217,11 @@ declare namespace gapi.client {
1159
1217
  // tslint:disable-next-line:no-empty-interface
1160
1218
  interface GoogleProtobufEmpty {
1161
1219
  }
1162
- interface UserLinksResource {
1220
+ interface AccessBindingsResource {
1163
1221
  /**
1164
- * Lists all user links on an account or property, including implicit ones that come from effective permissions granted by groups or organization admin roles. If a returned user link
1165
- * does not have direct permissions, they cannot be removed from the account or property directly with the DeleteUserLink command. They have to be removed from the group/etc that gives
1166
- * them permissions, which is currently only usable/discoverable in the GA or GMP UIs.
1222
+ * Creates information about multiple access bindings to an account or property. This method is transactional. If any AccessBinding cannot be created, none of the AccessBindings will
1223
+ * be created.
1167
1224
  */
1168
- audit(request: {
1169
- /** V1 error format. */
1170
- "$.xgafv"?: string;
1171
- /** OAuth access token. */
1172
- access_token?: string;
1173
- /** Data format for response. */
1174
- alt?: string;
1175
- /** JSONP */
1176
- callback?: string;
1177
- /** Selector specifying which fields to include in a partial response. */
1178
- fields?: string;
1179
- /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1180
- key?: string;
1181
- /** OAuth 2.0 token for the current user. */
1182
- oauth_token?: string;
1183
- /** Required. Example format: accounts/1234 */
1184
- parent: string;
1185
- /** Returns response with indentations and line breaks. */
1186
- prettyPrint?: boolean;
1187
- /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1188
- quotaUser?: string;
1189
- /** Upload protocol for media (e.g. "raw", "multipart"). */
1190
- upload_protocol?: string;
1191
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1192
- uploadType?: string;
1193
- /** Request body */
1194
- resource: GoogleAnalyticsAdminV1alphaAuditUserLinksRequest;
1195
- }): Request<GoogleAnalyticsAdminV1alphaAuditUserLinksResponse>;
1196
- audit(request: {
1197
- /** V1 error format. */
1198
- "$.xgafv"?: string;
1199
- /** OAuth access token. */
1200
- access_token?: string;
1201
- /** Data format for response. */
1202
- alt?: string;
1203
- /** JSONP */
1204
- callback?: string;
1205
- /** Selector specifying which fields to include in a partial response. */
1206
- fields?: string;
1207
- /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1208
- key?: string;
1209
- /** OAuth 2.0 token for the current user. */
1210
- oauth_token?: string;
1211
- /** Required. Example format: accounts/1234 */
1212
- parent: string;
1213
- /** Returns response with indentations and line breaks. */
1214
- prettyPrint?: boolean;
1215
- /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1216
- quotaUser?: string;
1217
- /** Upload protocol for media (e.g. "raw", "multipart"). */
1218
- upload_protocol?: string;
1219
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1220
- uploadType?: string;
1221
- },
1222
- body: GoogleAnalyticsAdminV1alphaAuditUserLinksRequest): Request<GoogleAnalyticsAdminV1alphaAuditUserLinksResponse>;
1223
- /** Creates information about multiple users' links to an account or property. This method is transactional. If any UserLink cannot be created, none of the UserLinks will be created. */
1224
1225
  batchCreate(request: {
1225
1226
  /** V1 error format. */
1226
1227
  "$.xgafv"?: string;
@@ -1237,8 +1238,8 @@ declare namespace gapi.client {
1237
1238
  /** OAuth 2.0 token for the current user. */
1238
1239
  oauth_token?: string;
1239
1240
  /**
1240
- * Required. The account or property that all user links in the request are for. This field is required. The parent field in the CreateUserLinkRequest messages must either be empty
1241
- * or match this field. Example format: accounts/1234
1241
+ * Required. The account or property that owns the access bindings. The parent field in the CreateAccessBindingRequest messages must either be empty or match this field. Formats: -
1242
+ * accounts/{account} - properties/{property}
1242
1243
  */
1243
1244
  parent: string;
1244
1245
  /** Returns response with indentations and line breaks. */
@@ -1250,8 +1251,8 @@ declare namespace gapi.client {
1250
1251
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1251
1252
  uploadType?: string;
1252
1253
  /** Request body */
1253
- resource: GoogleAnalyticsAdminV1alphaBatchCreateUserLinksRequest;
1254
- }): Request<GoogleAnalyticsAdminV1alphaBatchCreateUserLinksResponse>;
1254
+ resource: GoogleAnalyticsAdminV1alphaBatchCreateAccessBindingsRequest;
1255
+ }): Request<GoogleAnalyticsAdminV1alphaBatchCreateAccessBindingsResponse>;
1255
1256
  batchCreate(request: {
1256
1257
  /** V1 error format. */
1257
1258
  "$.xgafv"?: string;
@@ -1268,8 +1269,8 @@ declare namespace gapi.client {
1268
1269
  /** OAuth 2.0 token for the current user. */
1269
1270
  oauth_token?: string;
1270
1271
  /**
1271
- * Required. The account or property that all user links in the request are for. This field is required. The parent field in the CreateUserLinkRequest messages must either be empty
1272
- * or match this field. Example format: accounts/1234
1272
+ * Required. The account or property that owns the access bindings. The parent field in the CreateAccessBindingRequest messages must either be empty or match this field. Formats: -
1273
+ * accounts/{account} - properties/{property}
1273
1274
  */
1274
1275
  parent: string;
1275
1276
  /** Returns response with indentations and line breaks. */
@@ -1281,7 +1282,7 @@ declare namespace gapi.client {
1281
1282
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1282
1283
  uploadType?: string;
1283
1284
  },
1284
- body: GoogleAnalyticsAdminV1alphaBatchCreateUserLinksRequest): Request<GoogleAnalyticsAdminV1alphaBatchCreateUserLinksResponse>;
1285
+ body: GoogleAnalyticsAdminV1alphaBatchCreateAccessBindingsRequest): Request<GoogleAnalyticsAdminV1alphaBatchCreateAccessBindingsResponse>;
1285
1286
  /** Deletes information about multiple users' links to an account or property. */
1286
1287
  batchDelete(request: {
1287
1288
  /** V1 error format. */
@@ -1299,8 +1300,8 @@ declare namespace gapi.client {
1299
1300
  /** OAuth 2.0 token for the current user. */
1300
1301
  oauth_token?: string;
1301
1302
  /**
1302
- * Required. The account or property that all user links in the request are for. The parent of all values for user link names to delete must match this field. Example format:
1303
- * accounts/1234
1303
+ * Required. The account or property that owns the access bindings. The parent field in the DeleteAccessBindingRequest messages must either be empty or match this field. Formats: -
1304
+ * accounts/{account} - properties/{property}
1304
1305
  */
1305
1306
  parent: string;
1306
1307
  /** Returns response with indentations and line breaks. */
@@ -1312,7 +1313,7 @@ declare namespace gapi.client {
1312
1313
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1313
1314
  uploadType?: string;
1314
1315
  /** Request body */
1315
- resource: GoogleAnalyticsAdminV1alphaBatchDeleteUserLinksRequest;
1316
+ resource: GoogleAnalyticsAdminV1alphaBatchDeleteAccessBindingsRequest;
1316
1317
  }): Request<{}>;
1317
1318
  batchDelete(request: {
1318
1319
  /** V1 error format. */
@@ -1330,8 +1331,8 @@ declare namespace gapi.client {
1330
1331
  /** OAuth 2.0 token for the current user. */
1331
1332
  oauth_token?: string;
1332
1333
  /**
1333
- * Required. The account or property that all user links in the request are for. The parent of all values for user link names to delete must match this field. Example format:
1334
- * accounts/1234
1334
+ * Required. The account or property that owns the access bindings. The parent field in the DeleteAccessBindingRequest messages must either be empty or match this field. Formats: -
1335
+ * accounts/{account} - properties/{property}
1335
1336
  */
1336
1337
  parent: string;
1337
1338
  /** Returns response with indentations and line breaks. */
@@ -1343,8 +1344,8 @@ declare namespace gapi.client {
1343
1344
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1344
1345
  uploadType?: string;
1345
1346
  },
1346
- body: GoogleAnalyticsAdminV1alphaBatchDeleteUserLinksRequest): Request<{}>;
1347
- /** Gets information about multiple users' links to an account or property. */
1347
+ body: GoogleAnalyticsAdminV1alphaBatchDeleteAccessBindingsRequest): Request<{}>;
1348
+ /** Gets information about multiple access bindings to an account or property. */
1348
1349
  batchGet(request?: {
1349
1350
  /** V1 error format. */
1350
1351
  "$.xgafv"?: string;
@@ -1358,13 +1359,16 @@ declare namespace gapi.client {
1358
1359
  fields?: string;
1359
1360
  /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1360
1361
  key?: string;
1361
- /** Required. The names of the user links to retrieve. A maximum of 1000 user links can be retrieved in a batch. Format: accounts/{accountId}/userLinks/{userLinkId} */
1362
+ /**
1363
+ * Required. The names of the access bindings to retrieve. A maximum of 1000 access bindings can be retrieved in a batch. Formats: -
1364
+ * accounts/{account}/accessBindings/{accessBinding} - properties/{property}/accessBindings/{accessBinding}
1365
+ */
1362
1366
  names?: string | string[];
1363
1367
  /** OAuth 2.0 token for the current user. */
1364
1368
  oauth_token?: string;
1365
1369
  /**
1366
- * Required. The account or property that all user links in the request are for. The parent of all provided values for the 'names' field must match this field. Example format:
1367
- * accounts/1234
1370
+ * Required. The account or property that owns the access bindings. The parent of all provided values for the 'names' field must match this field. Formats: - accounts/{account} -
1371
+ * properties/{property}
1368
1372
  */
1369
1373
  parent: string;
1370
1374
  /** Returns response with indentations and line breaks. */
@@ -1375,8 +1379,8 @@ declare namespace gapi.client {
1375
1379
  upload_protocol?: string;
1376
1380
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1377
1381
  uploadType?: string;
1378
- }): Request<GoogleAnalyticsAdminV1alphaBatchGetUserLinksResponse>;
1379
- /** Updates information about multiple users' links to an account or property. */
1382
+ }): Request<GoogleAnalyticsAdminV1alphaBatchGetAccessBindingsResponse>;
1383
+ /** Updates information about multiple access bindings to an account or property. */
1380
1384
  batchUpdate(request: {
1381
1385
  /** V1 error format. */
1382
1386
  "$.xgafv"?: string;
@@ -1393,8 +1397,8 @@ declare namespace gapi.client {
1393
1397
  /** OAuth 2.0 token for the current user. */
1394
1398
  oauth_token?: string;
1395
1399
  /**
1396
- * Required. The account or property that all user links in the request are for. The parent field in the UpdateUserLinkRequest messages must either be empty or match this field.
1397
- * Example format: accounts/1234
1400
+ * Required. The account or property that owns the access bindings. The parent field in the UpdateAccessBindingRequest messages must either be empty or match this field. Formats: -
1401
+ * accounts/{account} - properties/{property}
1398
1402
  */
1399
1403
  parent: string;
1400
1404
  /** Returns response with indentations and line breaks. */
@@ -1406,8 +1410,8 @@ declare namespace gapi.client {
1406
1410
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1407
1411
  uploadType?: string;
1408
1412
  /** Request body */
1409
- resource: GoogleAnalyticsAdminV1alphaBatchUpdateUserLinksRequest;
1410
- }): Request<GoogleAnalyticsAdminV1alphaBatchUpdateUserLinksResponse>;
1413
+ resource: GoogleAnalyticsAdminV1alphaBatchUpdateAccessBindingsRequest;
1414
+ }): Request<GoogleAnalyticsAdminV1alphaBatchUpdateAccessBindingsResponse>;
1411
1415
  batchUpdate(request: {
1412
1416
  /** V1 error format. */
1413
1417
  "$.xgafv"?: string;
@@ -1424,8 +1428,8 @@ declare namespace gapi.client {
1424
1428
  /** OAuth 2.0 token for the current user. */
1425
1429
  oauth_token?: string;
1426
1430
  /**
1427
- * Required. The account or property that all user links in the request are for. The parent field in the UpdateUserLinkRequest messages must either be empty or match this field.
1428
- * Example format: accounts/1234
1431
+ * Required. The account or property that owns the access bindings. The parent field in the UpdateAccessBindingRequest messages must either be empty or match this field. Formats: -
1432
+ * accounts/{account} - properties/{property}
1429
1433
  */
1430
1434
  parent: string;
1431
1435
  /** Returns response with indentations and line breaks. */
@@ -1437,11 +1441,8 @@ declare namespace gapi.client {
1437
1441
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1438
1442
  uploadType?: string;
1439
1443
  },
1440
- body: GoogleAnalyticsAdminV1alphaBatchUpdateUserLinksRequest): Request<GoogleAnalyticsAdminV1alphaBatchUpdateUserLinksResponse>;
1441
- /**
1442
- * Creates a user link on an account or property. If the user with the specified email already has permissions on the account or property, then the user's existing permissions will be
1443
- * unioned with the permissions specified in the new UserLink.
1444
- */
1444
+ body: GoogleAnalyticsAdminV1alphaBatchUpdateAccessBindingsRequest): Request<GoogleAnalyticsAdminV1alphaBatchUpdateAccessBindingsResponse>;
1445
+ /** Creates an access binding on an account or property. */
1445
1446
  create(request: {
1446
1447
  /** V1 error format. */
1447
1448
  "$.xgafv"?: string;
@@ -1455,11 +1456,9 @@ declare namespace gapi.client {
1455
1456
  fields?: string;
1456
1457
  /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1457
1458
  key?: string;
1458
- /** Optional. If set, then email the new user notifying them that they've been granted permissions to the resource. */
1459
- notifyNewUser?: boolean;
1460
1459
  /** OAuth 2.0 token for the current user. */
1461
1460
  oauth_token?: string;
1462
- /** Required. Example format: accounts/1234 */
1461
+ /** Required. Formats: - accounts/{account} - properties/{property} */
1463
1462
  parent: string;
1464
1463
  /** Returns response with indentations and line breaks. */
1465
1464
  prettyPrint?: boolean;
@@ -1470,8 +1469,8 @@ declare namespace gapi.client {
1470
1469
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1471
1470
  uploadType?: string;
1472
1471
  /** Request body */
1473
- resource: GoogleAnalyticsAdminV1alphaUserLink;
1474
- }): Request<GoogleAnalyticsAdminV1alphaUserLink>;
1472
+ resource: GoogleAnalyticsAdminV1alphaAccessBinding;
1473
+ }): Request<GoogleAnalyticsAdminV1alphaAccessBinding>;
1475
1474
  create(request: {
1476
1475
  /** V1 error format. */
1477
1476
  "$.xgafv"?: string;
@@ -1485,11 +1484,9 @@ declare namespace gapi.client {
1485
1484
  fields?: string;
1486
1485
  /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1487
1486
  key?: string;
1488
- /** Optional. If set, then email the new user notifying them that they've been granted permissions to the resource. */
1489
- notifyNewUser?: boolean;
1490
1487
  /** OAuth 2.0 token for the current user. */
1491
1488
  oauth_token?: string;
1492
- /** Required. Example format: accounts/1234 */
1489
+ /** Required. Formats: - accounts/{account} - properties/{property} */
1493
1490
  parent: string;
1494
1491
  /** Returns response with indentations and line breaks. */
1495
1492
  prettyPrint?: boolean;
@@ -1500,8 +1497,8 @@ declare namespace gapi.client {
1500
1497
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1501
1498
  uploadType?: string;
1502
1499
  },
1503
- body: GoogleAnalyticsAdminV1alphaUserLink): Request<GoogleAnalyticsAdminV1alphaUserLink>;
1504
- /** Deletes a user link on an account or property. */
1500
+ body: GoogleAnalyticsAdminV1alphaAccessBinding): Request<GoogleAnalyticsAdminV1alphaAccessBinding>;
1501
+ /** Deletes an access binding on an account or property. */
1505
1502
  delete(request?: {
1506
1503
  /** V1 error format. */
1507
1504
  "$.xgafv"?: string;
@@ -1515,7 +1512,7 @@ declare namespace gapi.client {
1515
1512
  fields?: string;
1516
1513
  /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1517
1514
  key?: string;
1518
- /** Required. Example format: accounts/1234/userLinks/5678 */
1515
+ /** Required. Formats: - accounts/{account}/accessBindings/{accessBinding} - properties/{property}/accessBindings/{accessBinding} */
1519
1516
  name: string;
1520
1517
  /** OAuth 2.0 token for the current user. */
1521
1518
  oauth_token?: string;
@@ -1528,7 +1525,7 @@ declare namespace gapi.client {
1528
1525
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1529
1526
  uploadType?: string;
1530
1527
  }): Request<{}>;
1531
- /** Gets information about a user's link to an account or property. */
1528
+ /** Gets information about an access binding. */
1532
1529
  get(request?: {
1533
1530
  /** V1 error format. */
1534
1531
  "$.xgafv"?: string;
@@ -1542,7 +1539,7 @@ declare namespace gapi.client {
1542
1539
  fields?: string;
1543
1540
  /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1544
1541
  key?: string;
1545
- /** Required. Example format: accounts/1234/userLinks/5678 */
1542
+ /** Required. The name of the access binding to retrieve. Formats: - accounts/{account}/accessBindings/{accessBinding} - properties/{property}/accessBindings/{accessBinding} */
1546
1543
  name: string;
1547
1544
  /** OAuth 2.0 token for the current user. */
1548
1545
  oauth_token?: string;
@@ -1554,8 +1551,8 @@ declare namespace gapi.client {
1554
1551
  upload_protocol?: string;
1555
1552
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1556
1553
  uploadType?: string;
1557
- }): Request<GoogleAnalyticsAdminV1alphaUserLink>;
1558
- /** Lists all user links on an account or property. */
1554
+ }): Request<GoogleAnalyticsAdminV1alphaAccessBinding>;
1555
+ /** Lists all access bindings on an account or property. */
1559
1556
  list(request?: {
1560
1557
  /** V1 error format. */
1561
1558
  "$.xgafv"?: string;
@@ -1572,16 +1569,16 @@ declare namespace gapi.client {
1572
1569
  /** OAuth 2.0 token for the current user. */
1573
1570
  oauth_token?: string;
1574
1571
  /**
1575
- * The maximum number of user links to return. The service may return fewer than this value. If unspecified, at most 200 user links will be returned. The maximum value is 500;
1576
- * values above 500 will be coerced to 500.
1572
+ * The maximum number of access bindings to return. The service may return fewer than this value. If unspecified, at most 200 access bindings will be returned. The maximum value is
1573
+ * 500; values above 500 will be coerced to 500.
1577
1574
  */
1578
1575
  pageSize?: number;
1579
1576
  /**
1580
- * A page token, received from a previous `ListUserLinks` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListUserLinks` must
1581
- * match the call that provided the page token.
1577
+ * A page token, received from a previous `ListAccessBindings` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to
1578
+ * `ListAccessBindings` must match the call that provided the page token.
1582
1579
  */
1583
1580
  pageToken?: string;
1584
- /** Required. Example format: accounts/1234 */
1581
+ /** Required. Formats: - accounts/{account} - properties/{property} */
1585
1582
  parent: string;
1586
1583
  /** Returns response with indentations and line breaks. */
1587
1584
  prettyPrint?: boolean;
@@ -1591,8 +1588,8 @@ declare namespace gapi.client {
1591
1588
  upload_protocol?: string;
1592
1589
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1593
1590
  uploadType?: string;
1594
- }): Request<GoogleAnalyticsAdminV1alphaListUserLinksResponse>;
1595
- /** Updates a user link on an account or property. */
1591
+ }): Request<GoogleAnalyticsAdminV1alphaListAccessBindingsResponse>;
1592
+ /** Updates an access binding on an account or property. */
1596
1593
  patch(request: {
1597
1594
  /** V1 error format. */
1598
1595
  "$.xgafv"?: string;
@@ -1606,7 +1603,10 @@ declare namespace gapi.client {
1606
1603
  fields?: string;
1607
1604
  /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1608
1605
  key?: string;
1609
- /** Output only. Example format: properties/1234/userLinks/5678 */
1606
+ /**
1607
+ * Output only. Resource name of this binding. Format: accounts/{account}/accessBindings/{access_binding} or properties/{property}/accessBindings/{access_binding} Example:
1608
+ * "accounts/100/accessBindings/200"
1609
+ */
1610
1610
  name: string;
1611
1611
  /** OAuth 2.0 token for the current user. */
1612
1612
  oauth_token?: string;
@@ -1619,8 +1619,8 @@ declare namespace gapi.client {
1619
1619
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1620
1620
  uploadType?: string;
1621
1621
  /** Request body */
1622
- resource: GoogleAnalyticsAdminV1alphaUserLink;
1623
- }): Request<GoogleAnalyticsAdminV1alphaUserLink>;
1622
+ resource: GoogleAnalyticsAdminV1alphaAccessBinding;
1623
+ }): Request<GoogleAnalyticsAdminV1alphaAccessBinding>;
1624
1624
  patch(request: {
1625
1625
  /** V1 error format. */
1626
1626
  "$.xgafv"?: string;
@@ -1634,7 +1634,10 @@ declare namespace gapi.client {
1634
1634
  fields?: string;
1635
1635
  /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1636
1636
  key?: string;
1637
- /** Output only. Example format: properties/1234/userLinks/5678 */
1637
+ /**
1638
+ * Output only. Resource name of this binding. Format: accounts/{account}/accessBindings/{access_binding} or properties/{property}/accessBindings/{access_binding} Example:
1639
+ * "accounts/100/accessBindings/200"
1640
+ */
1638
1641
  name: string;
1639
1642
  /** OAuth 2.0 token for the current user. */
1640
1643
  oauth_token?: string;
@@ -1647,15 +1650,15 @@ declare namespace gapi.client {
1647
1650
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1648
1651
  uploadType?: string;
1649
1652
  },
1650
- body: GoogleAnalyticsAdminV1alphaUserLink): Request<GoogleAnalyticsAdminV1alphaUserLink>;
1653
+ body: GoogleAnalyticsAdminV1alphaAccessBinding): Request<GoogleAnalyticsAdminV1alphaAccessBinding>;
1651
1654
  }
1652
- interface AccountsResource {
1655
+ interface UserLinksResource {
1653
1656
  /**
1654
- * Marks target Account as soft-deleted (ie: "trashed") and returns it. This API does not have a method to restore soft-deleted accounts. However, they can be restored using the Trash
1655
- * Can UI. If the accounts are not restored before the expiration time, the account and all child resources (eg: Properties, GoogleAdsLinks, Streams, UserLinks) will be permanently
1656
- * purged. https://support.google.com/analytics/answer/6154772 Returns an error if the target is not found.
1657
+ * Lists all user links on an account or property, including implicit ones that come from effective permissions granted by groups or organization admin roles. If a returned user link
1658
+ * does not have direct permissions, they cannot be removed from the account or property directly with the DeleteUserLink command. They have to be removed from the group/etc that gives
1659
+ * them permissions, which is currently only usable/discoverable in the GA or GMP UIs.
1657
1660
  */
1658
- delete(request?: {
1661
+ audit(request: {
1659
1662
  /** V1 error format. */
1660
1663
  "$.xgafv"?: string;
1661
1664
  /** OAuth access token. */
@@ -1668,10 +1671,10 @@ declare namespace gapi.client {
1668
1671
  fields?: string;
1669
1672
  /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1670
1673
  key?: string;
1671
- /** Required. The name of the Account to soft-delete. Format: accounts/{account} Example: "accounts/100" */
1672
- name: string;
1673
1674
  /** OAuth 2.0 token for the current user. */
1674
1675
  oauth_token?: string;
1676
+ /** Required. Example format: accounts/1234 */
1677
+ parent: string;
1675
1678
  /** Returns response with indentations and line breaks. */
1676
1679
  prettyPrint?: boolean;
1677
1680
  /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
@@ -1680,9 +1683,10 @@ declare namespace gapi.client {
1680
1683
  upload_protocol?: string;
1681
1684
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1682
1685
  uploadType?: string;
1683
- }): Request<{}>;
1684
- /** Lookup for a single Account. */
1685
- get(request?: {
1686
+ /** Request body */
1687
+ resource: GoogleAnalyticsAdminV1alphaAuditUserLinksRequest;
1688
+ }): Request<GoogleAnalyticsAdminV1alphaAuditUserLinksResponse>;
1689
+ audit(request: {
1686
1690
  /** V1 error format. */
1687
1691
  "$.xgafv"?: string;
1688
1692
  /** OAuth access token. */
@@ -1695,10 +1699,10 @@ declare namespace gapi.client {
1695
1699
  fields?: string;
1696
1700
  /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1697
1701
  key?: string;
1698
- /** Required. The name of the account to lookup. Format: accounts/{account} Example: "accounts/100" */
1699
- name: string;
1700
1702
  /** OAuth 2.0 token for the current user. */
1701
1703
  oauth_token?: string;
1704
+ /** Required. Example format: accounts/1234 */
1705
+ parent: string;
1702
1706
  /** Returns response with indentations and line breaks. */
1703
1707
  prettyPrint?: boolean;
1704
1708
  /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
@@ -1707,9 +1711,10 @@ declare namespace gapi.client {
1707
1711
  upload_protocol?: string;
1708
1712
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1709
1713
  uploadType?: string;
1710
- }): Request<GoogleAnalyticsAdminV1alphaAccount>;
1711
- /** Get data sharing settings on an account. Data sharing settings are singletons. */
1712
- getDataSharingSettings(request?: {
1714
+ },
1715
+ body: GoogleAnalyticsAdminV1alphaAuditUserLinksRequest): Request<GoogleAnalyticsAdminV1alphaAuditUserLinksResponse>;
1716
+ /** Creates information about multiple users' links to an account or property. This method is transactional. If any UserLink cannot be created, none of the UserLinks will be created. */
1717
+ batchCreate(request: {
1713
1718
  /** V1 error format. */
1714
1719
  "$.xgafv"?: string;
1715
1720
  /** OAuth access token. */
@@ -1722,10 +1727,13 @@ declare namespace gapi.client {
1722
1727
  fields?: string;
1723
1728
  /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1724
1729
  key?: string;
1725
- /** Required. The name of the settings to lookup. Format: accounts/{account}/dataSharingSettings Example: "accounts/1000/dataSharingSettings" */
1726
- name: string;
1727
1730
  /** OAuth 2.0 token for the current user. */
1728
1731
  oauth_token?: string;
1732
+ /**
1733
+ * Required. The account or property that all user links in the request are for. This field is required. The parent field in the CreateUserLinkRequest messages must either be empty
1734
+ * or match this field. Example format: accounts/1234
1735
+ */
1736
+ parent: string;
1729
1737
  /** Returns response with indentations and line breaks. */
1730
1738
  prettyPrint?: boolean;
1731
1739
  /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
@@ -1734,12 +1742,10 @@ declare namespace gapi.client {
1734
1742
  upload_protocol?: string;
1735
1743
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1736
1744
  uploadType?: string;
1737
- }): Request<GoogleAnalyticsAdminV1alphaDataSharingSettings>;
1738
- /**
1739
- * Returns all accounts accessible by the caller. Note that these accounts might not currently have GA4 properties. Soft-deleted (ie: "trashed") accounts are excluded by default.
1740
- * Returns an empty list if no relevant accounts are found.
1741
- */
1742
- list(request?: {
1745
+ /** Request body */
1746
+ resource: GoogleAnalyticsAdminV1alphaBatchCreateUserLinksRequest;
1747
+ }): Request<GoogleAnalyticsAdminV1alphaBatchCreateUserLinksResponse>;
1748
+ batchCreate(request: {
1743
1749
  /** V1 error format. */
1744
1750
  "$.xgafv"?: string;
1745
1751
  /** OAuth access token. */
@@ -1755,28 +1761,22 @@ declare namespace gapi.client {
1755
1761
  /** OAuth 2.0 token for the current user. */
1756
1762
  oauth_token?: string;
1757
1763
  /**
1758
- * The maximum number of resources to return. The service may return fewer than this value, even if there are additional pages. If unspecified, at most 50 resources will be
1759
- * returned. The maximum value is 200; (higher values will be coerced to the maximum)
1760
- */
1761
- pageSize?: number;
1762
- /**
1763
- * A page token, received from a previous `ListAccounts` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListAccounts` must
1764
- * match the call that provided the page token.
1764
+ * Required. The account or property that all user links in the request are for. This field is required. The parent field in the CreateUserLinkRequest messages must either be empty
1765
+ * or match this field. Example format: accounts/1234
1765
1766
  */
1766
- pageToken?: string;
1767
+ parent: string;
1767
1768
  /** Returns response with indentations and line breaks. */
1768
1769
  prettyPrint?: boolean;
1769
1770
  /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1770
1771
  quotaUser?: string;
1771
- /** Whether to include soft-deleted (ie: "trashed") Accounts in the results. Accounts can be inspected to determine whether they are deleted or not. */
1772
- showDeleted?: boolean;
1773
1772
  /** Upload protocol for media (e.g. "raw", "multipart"). */
1774
1773
  upload_protocol?: string;
1775
1774
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1776
1775
  uploadType?: string;
1777
- }): Request<GoogleAnalyticsAdminV1alphaListAccountsResponse>;
1778
- /** Updates an account. */
1779
- patch(request: {
1776
+ },
1777
+ body: GoogleAnalyticsAdminV1alphaBatchCreateUserLinksRequest): Request<GoogleAnalyticsAdminV1alphaBatchCreateUserLinksResponse>;
1778
+ /** Deletes information about multiple users' links to an account or property. */
1779
+ batchDelete(request: {
1780
1780
  /** V1 error format. */
1781
1781
  "$.xgafv"?: string;
1782
1782
  /** OAuth access token. */
@@ -1789,27 +1789,25 @@ declare namespace gapi.client {
1789
1789
  fields?: string;
1790
1790
  /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1791
1791
  key?: string;
1792
- /** Output only. Resource name of this account. Format: accounts/{account} Example: "accounts/100" */
1793
- name: string;
1794
1792
  /** OAuth 2.0 token for the current user. */
1795
1793
  oauth_token?: string;
1794
+ /**
1795
+ * Required. The account or property that all user links in the request are for. The parent of all values for user link names to delete must match this field. Example format:
1796
+ * accounts/1234
1797
+ */
1798
+ parent: string;
1796
1799
  /** Returns response with indentations and line breaks. */
1797
1800
  prettyPrint?: boolean;
1798
1801
  /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1799
1802
  quotaUser?: string;
1800
- /**
1801
- * Required. The list of fields to be updated. Field names must be in snake case (e.g., "field_to_update"). Omitted fields will not be updated. To replace the entire entity, use
1802
- * one path with the string "*" to match all fields.
1803
- */
1804
- updateMask?: string;
1805
1803
  /** Upload protocol for media (e.g. "raw", "multipart"). */
1806
1804
  upload_protocol?: string;
1807
1805
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1808
1806
  uploadType?: string;
1809
1807
  /** Request body */
1810
- resource: GoogleAnalyticsAdminV1alphaAccount;
1811
- }): Request<GoogleAnalyticsAdminV1alphaAccount>;
1812
- patch(request: {
1808
+ resource: GoogleAnalyticsAdminV1alphaBatchDeleteUserLinksRequest;
1809
+ }): Request<{}>;
1810
+ batchDelete(request: {
1813
1811
  /** V1 error format. */
1814
1812
  "$.xgafv"?: string;
1815
1813
  /** OAuth access token. */
@@ -1822,27 +1820,25 @@ declare namespace gapi.client {
1822
1820
  fields?: string;
1823
1821
  /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1824
1822
  key?: string;
1825
- /** Output only. Resource name of this account. Format: accounts/{account} Example: "accounts/100" */
1826
- name: string;
1827
1823
  /** OAuth 2.0 token for the current user. */
1828
1824
  oauth_token?: string;
1825
+ /**
1826
+ * Required. The account or property that all user links in the request are for. The parent of all values for user link names to delete must match this field. Example format:
1827
+ * accounts/1234
1828
+ */
1829
+ parent: string;
1829
1830
  /** Returns response with indentations and line breaks. */
1830
1831
  prettyPrint?: boolean;
1831
1832
  /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1832
1833
  quotaUser?: string;
1833
- /**
1834
- * Required. The list of fields to be updated. Field names must be in snake case (e.g., "field_to_update"). Omitted fields will not be updated. To replace the entire entity, use
1835
- * one path with the string "*" to match all fields.
1836
- */
1837
- updateMask?: string;
1838
1834
  /** Upload protocol for media (e.g. "raw", "multipart"). */
1839
1835
  upload_protocol?: string;
1840
1836
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1841
1837
  uploadType?: string;
1842
1838
  },
1843
- body: GoogleAnalyticsAdminV1alphaAccount): Request<GoogleAnalyticsAdminV1alphaAccount>;
1844
- /** Requests a ticket for creating an account. */
1845
- provisionAccountTicket(request: {
1839
+ body: GoogleAnalyticsAdminV1alphaBatchDeleteUserLinksRequest): Request<{}>;
1840
+ /** Gets information about multiple users' links to an account or property. */
1841
+ batchGet(request?: {
1846
1842
  /** V1 error format. */
1847
1843
  "$.xgafv"?: string;
1848
1844
  /** OAuth access token. */
@@ -1855,8 +1851,15 @@ declare namespace gapi.client {
1855
1851
  fields?: string;
1856
1852
  /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1857
1853
  key?: string;
1854
+ /** Required. The names of the user links to retrieve. A maximum of 1000 user links can be retrieved in a batch. Format: accounts/{accountId}/userLinks/{userLinkId} */
1855
+ names?: string | string[];
1858
1856
  /** OAuth 2.0 token for the current user. */
1859
1857
  oauth_token?: string;
1858
+ /**
1859
+ * Required. The account or property that all user links in the request are for. The parent of all provided values for the 'names' field must match this field. Example format:
1860
+ * accounts/1234
1861
+ */
1862
+ parent: string;
1860
1863
  /** Returns response with indentations and line breaks. */
1861
1864
  prettyPrint?: boolean;
1862
1865
  /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
@@ -1865,7 +1868,497 @@ declare namespace gapi.client {
1865
1868
  upload_protocol?: string;
1866
1869
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1867
1870
  uploadType?: string;
1868
- /** Request body */
1871
+ }): Request<GoogleAnalyticsAdminV1alphaBatchGetUserLinksResponse>;
1872
+ /** Updates information about multiple users' links to an account or property. */
1873
+ batchUpdate(request: {
1874
+ /** V1 error format. */
1875
+ "$.xgafv"?: string;
1876
+ /** OAuth access token. */
1877
+ access_token?: string;
1878
+ /** Data format for response. */
1879
+ alt?: string;
1880
+ /** JSONP */
1881
+ callback?: string;
1882
+ /** Selector specifying which fields to include in a partial response. */
1883
+ fields?: string;
1884
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1885
+ key?: string;
1886
+ /** OAuth 2.0 token for the current user. */
1887
+ oauth_token?: string;
1888
+ /**
1889
+ * Required. The account or property that all user links in the request are for. The parent field in the UpdateUserLinkRequest messages must either be empty or match this field.
1890
+ * Example format: accounts/1234
1891
+ */
1892
+ parent: string;
1893
+ /** Returns response with indentations and line breaks. */
1894
+ prettyPrint?: boolean;
1895
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1896
+ quotaUser?: string;
1897
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1898
+ upload_protocol?: string;
1899
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1900
+ uploadType?: string;
1901
+ /** Request body */
1902
+ resource: GoogleAnalyticsAdminV1alphaBatchUpdateUserLinksRequest;
1903
+ }): Request<GoogleAnalyticsAdminV1alphaBatchUpdateUserLinksResponse>;
1904
+ batchUpdate(request: {
1905
+ /** V1 error format. */
1906
+ "$.xgafv"?: string;
1907
+ /** OAuth access token. */
1908
+ access_token?: string;
1909
+ /** Data format for response. */
1910
+ alt?: string;
1911
+ /** JSONP */
1912
+ callback?: string;
1913
+ /** Selector specifying which fields to include in a partial response. */
1914
+ fields?: string;
1915
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1916
+ key?: string;
1917
+ /** OAuth 2.0 token for the current user. */
1918
+ oauth_token?: string;
1919
+ /**
1920
+ * Required. The account or property that all user links in the request are for. The parent field in the UpdateUserLinkRequest messages must either be empty or match this field.
1921
+ * Example format: accounts/1234
1922
+ */
1923
+ parent: string;
1924
+ /** Returns response with indentations and line breaks. */
1925
+ prettyPrint?: boolean;
1926
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1927
+ quotaUser?: string;
1928
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1929
+ upload_protocol?: string;
1930
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1931
+ uploadType?: string;
1932
+ },
1933
+ body: GoogleAnalyticsAdminV1alphaBatchUpdateUserLinksRequest): Request<GoogleAnalyticsAdminV1alphaBatchUpdateUserLinksResponse>;
1934
+ /**
1935
+ * Creates a user link on an account or property. If the user with the specified email already has permissions on the account or property, then the user's existing permissions will be
1936
+ * unioned with the permissions specified in the new UserLink.
1937
+ */
1938
+ create(request: {
1939
+ /** V1 error format. */
1940
+ "$.xgafv"?: string;
1941
+ /** OAuth access token. */
1942
+ access_token?: string;
1943
+ /** Data format for response. */
1944
+ alt?: string;
1945
+ /** JSONP */
1946
+ callback?: string;
1947
+ /** Selector specifying which fields to include in a partial response. */
1948
+ fields?: string;
1949
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1950
+ key?: string;
1951
+ /** Optional. If set, then email the new user notifying them that they've been granted permissions to the resource. */
1952
+ notifyNewUser?: boolean;
1953
+ /** OAuth 2.0 token for the current user. */
1954
+ oauth_token?: string;
1955
+ /** Required. Example format: accounts/1234 */
1956
+ parent: string;
1957
+ /** Returns response with indentations and line breaks. */
1958
+ prettyPrint?: boolean;
1959
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1960
+ quotaUser?: string;
1961
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1962
+ upload_protocol?: string;
1963
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1964
+ uploadType?: string;
1965
+ /** Request body */
1966
+ resource: GoogleAnalyticsAdminV1alphaUserLink;
1967
+ }): Request<GoogleAnalyticsAdminV1alphaUserLink>;
1968
+ create(request: {
1969
+ /** V1 error format. */
1970
+ "$.xgafv"?: string;
1971
+ /** OAuth access token. */
1972
+ access_token?: string;
1973
+ /** Data format for response. */
1974
+ alt?: string;
1975
+ /** JSONP */
1976
+ callback?: string;
1977
+ /** Selector specifying which fields to include in a partial response. */
1978
+ fields?: string;
1979
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1980
+ key?: string;
1981
+ /** Optional. If set, then email the new user notifying them that they've been granted permissions to the resource. */
1982
+ notifyNewUser?: boolean;
1983
+ /** OAuth 2.0 token for the current user. */
1984
+ oauth_token?: string;
1985
+ /** Required. Example format: accounts/1234 */
1986
+ parent: string;
1987
+ /** Returns response with indentations and line breaks. */
1988
+ prettyPrint?: boolean;
1989
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1990
+ quotaUser?: string;
1991
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1992
+ upload_protocol?: string;
1993
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1994
+ uploadType?: string;
1995
+ },
1996
+ body: GoogleAnalyticsAdminV1alphaUserLink): Request<GoogleAnalyticsAdminV1alphaUserLink>;
1997
+ /** Deletes a user link on an account or property. */
1998
+ delete(request?: {
1999
+ /** V1 error format. */
2000
+ "$.xgafv"?: string;
2001
+ /** OAuth access token. */
2002
+ access_token?: string;
2003
+ /** Data format for response. */
2004
+ alt?: string;
2005
+ /** JSONP */
2006
+ callback?: string;
2007
+ /** Selector specifying which fields to include in a partial response. */
2008
+ fields?: string;
2009
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
2010
+ key?: string;
2011
+ /** Required. Example format: accounts/1234/userLinks/5678 */
2012
+ name: string;
2013
+ /** OAuth 2.0 token for the current user. */
2014
+ oauth_token?: string;
2015
+ /** Returns response with indentations and line breaks. */
2016
+ prettyPrint?: boolean;
2017
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2018
+ quotaUser?: string;
2019
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2020
+ upload_protocol?: string;
2021
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2022
+ uploadType?: string;
2023
+ }): Request<{}>;
2024
+ /** Gets information about a user's link to an account or property. */
2025
+ get(request?: {
2026
+ /** V1 error format. */
2027
+ "$.xgafv"?: string;
2028
+ /** OAuth access token. */
2029
+ access_token?: string;
2030
+ /** Data format for response. */
2031
+ alt?: string;
2032
+ /** JSONP */
2033
+ callback?: string;
2034
+ /** Selector specifying which fields to include in a partial response. */
2035
+ fields?: string;
2036
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
2037
+ key?: string;
2038
+ /** Required. Example format: accounts/1234/userLinks/5678 */
2039
+ name: string;
2040
+ /** OAuth 2.0 token for the current user. */
2041
+ oauth_token?: string;
2042
+ /** Returns response with indentations and line breaks. */
2043
+ prettyPrint?: boolean;
2044
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2045
+ quotaUser?: string;
2046
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2047
+ upload_protocol?: string;
2048
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2049
+ uploadType?: string;
2050
+ }): Request<GoogleAnalyticsAdminV1alphaUserLink>;
2051
+ /** Lists all user links on an account or property. */
2052
+ list(request?: {
2053
+ /** V1 error format. */
2054
+ "$.xgafv"?: string;
2055
+ /** OAuth access token. */
2056
+ access_token?: string;
2057
+ /** Data format for response. */
2058
+ alt?: string;
2059
+ /** JSONP */
2060
+ callback?: string;
2061
+ /** Selector specifying which fields to include in a partial response. */
2062
+ fields?: string;
2063
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
2064
+ key?: string;
2065
+ /** OAuth 2.0 token for the current user. */
2066
+ oauth_token?: string;
2067
+ /**
2068
+ * The maximum number of user links to return. The service may return fewer than this value. If unspecified, at most 200 user links will be returned. The maximum value is 500;
2069
+ * values above 500 will be coerced to 500.
2070
+ */
2071
+ pageSize?: number;
2072
+ /**
2073
+ * A page token, received from a previous `ListUserLinks` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListUserLinks` must
2074
+ * match the call that provided the page token.
2075
+ */
2076
+ pageToken?: string;
2077
+ /** Required. Example format: accounts/1234 */
2078
+ parent: string;
2079
+ /** Returns response with indentations and line breaks. */
2080
+ prettyPrint?: boolean;
2081
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2082
+ quotaUser?: string;
2083
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2084
+ upload_protocol?: string;
2085
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2086
+ uploadType?: string;
2087
+ }): Request<GoogleAnalyticsAdminV1alphaListUserLinksResponse>;
2088
+ /** Updates a user link on an account or property. */
2089
+ patch(request: {
2090
+ /** V1 error format. */
2091
+ "$.xgafv"?: string;
2092
+ /** OAuth access token. */
2093
+ access_token?: string;
2094
+ /** Data format for response. */
2095
+ alt?: string;
2096
+ /** JSONP */
2097
+ callback?: string;
2098
+ /** Selector specifying which fields to include in a partial response. */
2099
+ fields?: string;
2100
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
2101
+ key?: string;
2102
+ /** Output only. Example format: properties/1234/userLinks/5678 */
2103
+ name: string;
2104
+ /** OAuth 2.0 token for the current user. */
2105
+ oauth_token?: string;
2106
+ /** Returns response with indentations and line breaks. */
2107
+ prettyPrint?: boolean;
2108
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2109
+ quotaUser?: string;
2110
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2111
+ upload_protocol?: string;
2112
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2113
+ uploadType?: string;
2114
+ /** Request body */
2115
+ resource: GoogleAnalyticsAdminV1alphaUserLink;
2116
+ }): Request<GoogleAnalyticsAdminV1alphaUserLink>;
2117
+ patch(request: {
2118
+ /** V1 error format. */
2119
+ "$.xgafv"?: string;
2120
+ /** OAuth access token. */
2121
+ access_token?: string;
2122
+ /** Data format for response. */
2123
+ alt?: string;
2124
+ /** JSONP */
2125
+ callback?: string;
2126
+ /** Selector specifying which fields to include in a partial response. */
2127
+ fields?: string;
2128
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
2129
+ key?: string;
2130
+ /** Output only. Example format: properties/1234/userLinks/5678 */
2131
+ name: string;
2132
+ /** OAuth 2.0 token for the current user. */
2133
+ oauth_token?: string;
2134
+ /** Returns response with indentations and line breaks. */
2135
+ prettyPrint?: boolean;
2136
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2137
+ quotaUser?: string;
2138
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2139
+ upload_protocol?: string;
2140
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2141
+ uploadType?: string;
2142
+ },
2143
+ body: GoogleAnalyticsAdminV1alphaUserLink): Request<GoogleAnalyticsAdminV1alphaUserLink>;
2144
+ }
2145
+ interface AccountsResource {
2146
+ /**
2147
+ * Marks target Account as soft-deleted (ie: "trashed") and returns it. This API does not have a method to restore soft-deleted accounts. However, they can be restored using the Trash
2148
+ * Can UI. If the accounts are not restored before the expiration time, the account and all child resources (eg: Properties, GoogleAdsLinks, Streams, UserLinks) will be permanently
2149
+ * purged. https://support.google.com/analytics/answer/6154772 Returns an error if the target is not found.
2150
+ */
2151
+ delete(request?: {
2152
+ /** V1 error format. */
2153
+ "$.xgafv"?: string;
2154
+ /** OAuth access token. */
2155
+ access_token?: string;
2156
+ /** Data format for response. */
2157
+ alt?: string;
2158
+ /** JSONP */
2159
+ callback?: string;
2160
+ /** Selector specifying which fields to include in a partial response. */
2161
+ fields?: string;
2162
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
2163
+ key?: string;
2164
+ /** Required. The name of the Account to soft-delete. Format: accounts/{account} Example: "accounts/100" */
2165
+ name: string;
2166
+ /** OAuth 2.0 token for the current user. */
2167
+ oauth_token?: string;
2168
+ /** Returns response with indentations and line breaks. */
2169
+ prettyPrint?: boolean;
2170
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2171
+ quotaUser?: string;
2172
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2173
+ upload_protocol?: string;
2174
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2175
+ uploadType?: string;
2176
+ }): Request<{}>;
2177
+ /** Lookup for a single Account. */
2178
+ get(request?: {
2179
+ /** V1 error format. */
2180
+ "$.xgafv"?: string;
2181
+ /** OAuth access token. */
2182
+ access_token?: string;
2183
+ /** Data format for response. */
2184
+ alt?: string;
2185
+ /** JSONP */
2186
+ callback?: string;
2187
+ /** Selector specifying which fields to include in a partial response. */
2188
+ fields?: string;
2189
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
2190
+ key?: string;
2191
+ /** Required. The name of the account to lookup. Format: accounts/{account} Example: "accounts/100" */
2192
+ name: string;
2193
+ /** OAuth 2.0 token for the current user. */
2194
+ oauth_token?: string;
2195
+ /** Returns response with indentations and line breaks. */
2196
+ prettyPrint?: boolean;
2197
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2198
+ quotaUser?: string;
2199
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2200
+ upload_protocol?: string;
2201
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2202
+ uploadType?: string;
2203
+ }): Request<GoogleAnalyticsAdminV1alphaAccount>;
2204
+ /** Get data sharing settings on an account. Data sharing settings are singletons. */
2205
+ getDataSharingSettings(request?: {
2206
+ /** V1 error format. */
2207
+ "$.xgafv"?: string;
2208
+ /** OAuth access token. */
2209
+ access_token?: string;
2210
+ /** Data format for response. */
2211
+ alt?: string;
2212
+ /** JSONP */
2213
+ callback?: string;
2214
+ /** Selector specifying which fields to include in a partial response. */
2215
+ fields?: string;
2216
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
2217
+ key?: string;
2218
+ /** Required. The name of the settings to lookup. Format: accounts/{account}/dataSharingSettings Example: "accounts/1000/dataSharingSettings" */
2219
+ name: string;
2220
+ /** OAuth 2.0 token for the current user. */
2221
+ oauth_token?: string;
2222
+ /** Returns response with indentations and line breaks. */
2223
+ prettyPrint?: boolean;
2224
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2225
+ quotaUser?: string;
2226
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2227
+ upload_protocol?: string;
2228
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2229
+ uploadType?: string;
2230
+ }): Request<GoogleAnalyticsAdminV1alphaDataSharingSettings>;
2231
+ /**
2232
+ * Returns all accounts accessible by the caller. Note that these accounts might not currently have GA4 properties. Soft-deleted (ie: "trashed") accounts are excluded by default.
2233
+ * Returns an empty list if no relevant accounts are found.
2234
+ */
2235
+ list(request?: {
2236
+ /** V1 error format. */
2237
+ "$.xgafv"?: string;
2238
+ /** OAuth access token. */
2239
+ access_token?: string;
2240
+ /** Data format for response. */
2241
+ alt?: string;
2242
+ /** JSONP */
2243
+ callback?: string;
2244
+ /** Selector specifying which fields to include in a partial response. */
2245
+ fields?: string;
2246
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
2247
+ key?: string;
2248
+ /** OAuth 2.0 token for the current user. */
2249
+ oauth_token?: string;
2250
+ /**
2251
+ * The maximum number of resources to return. The service may return fewer than this value, even if there are additional pages. If unspecified, at most 50 resources will be
2252
+ * returned. The maximum value is 200; (higher values will be coerced to the maximum)
2253
+ */
2254
+ pageSize?: number;
2255
+ /**
2256
+ * A page token, received from a previous `ListAccounts` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListAccounts` must
2257
+ * match the call that provided the page token.
2258
+ */
2259
+ pageToken?: string;
2260
+ /** Returns response with indentations and line breaks. */
2261
+ prettyPrint?: boolean;
2262
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2263
+ quotaUser?: string;
2264
+ /** Whether to include soft-deleted (ie: "trashed") Accounts in the results. Accounts can be inspected to determine whether they are deleted or not. */
2265
+ showDeleted?: boolean;
2266
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2267
+ upload_protocol?: string;
2268
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2269
+ uploadType?: string;
2270
+ }): Request<GoogleAnalyticsAdminV1alphaListAccountsResponse>;
2271
+ /** Updates an account. */
2272
+ patch(request: {
2273
+ /** V1 error format. */
2274
+ "$.xgafv"?: string;
2275
+ /** OAuth access token. */
2276
+ access_token?: string;
2277
+ /** Data format for response. */
2278
+ alt?: string;
2279
+ /** JSONP */
2280
+ callback?: string;
2281
+ /** Selector specifying which fields to include in a partial response. */
2282
+ fields?: string;
2283
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
2284
+ key?: string;
2285
+ /** Output only. Resource name of this account. Format: accounts/{account} Example: "accounts/100" */
2286
+ name: string;
2287
+ /** OAuth 2.0 token for the current user. */
2288
+ oauth_token?: string;
2289
+ /** Returns response with indentations and line breaks. */
2290
+ prettyPrint?: boolean;
2291
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2292
+ quotaUser?: string;
2293
+ /**
2294
+ * Required. The list of fields to be updated. Field names must be in snake case (e.g., "field_to_update"). Omitted fields will not be updated. To replace the entire entity, use
2295
+ * one path with the string "*" to match all fields.
2296
+ */
2297
+ updateMask?: string;
2298
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2299
+ upload_protocol?: string;
2300
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2301
+ uploadType?: string;
2302
+ /** Request body */
2303
+ resource: GoogleAnalyticsAdminV1alphaAccount;
2304
+ }): Request<GoogleAnalyticsAdminV1alphaAccount>;
2305
+ patch(request: {
2306
+ /** V1 error format. */
2307
+ "$.xgafv"?: string;
2308
+ /** OAuth access token. */
2309
+ access_token?: string;
2310
+ /** Data format for response. */
2311
+ alt?: string;
2312
+ /** JSONP */
2313
+ callback?: string;
2314
+ /** Selector specifying which fields to include in a partial response. */
2315
+ fields?: string;
2316
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
2317
+ key?: string;
2318
+ /** Output only. Resource name of this account. Format: accounts/{account} Example: "accounts/100" */
2319
+ name: string;
2320
+ /** OAuth 2.0 token for the current user. */
2321
+ oauth_token?: string;
2322
+ /** Returns response with indentations and line breaks. */
2323
+ prettyPrint?: boolean;
2324
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2325
+ quotaUser?: string;
2326
+ /**
2327
+ * Required. The list of fields to be updated. Field names must be in snake case (e.g., "field_to_update"). Omitted fields will not be updated. To replace the entire entity, use
2328
+ * one path with the string "*" to match all fields.
2329
+ */
2330
+ updateMask?: string;
2331
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2332
+ upload_protocol?: string;
2333
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2334
+ uploadType?: string;
2335
+ },
2336
+ body: GoogleAnalyticsAdminV1alphaAccount): Request<GoogleAnalyticsAdminV1alphaAccount>;
2337
+ /** Requests a ticket for creating an account. */
2338
+ provisionAccountTicket(request: {
2339
+ /** V1 error format. */
2340
+ "$.xgafv"?: string;
2341
+ /** OAuth access token. */
2342
+ access_token?: string;
2343
+ /** Data format for response. */
2344
+ alt?: string;
2345
+ /** JSONP */
2346
+ callback?: string;
2347
+ /** Selector specifying which fields to include in a partial response. */
2348
+ fields?: string;
2349
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
2350
+ key?: string;
2351
+ /** OAuth 2.0 token for the current user. */
2352
+ oauth_token?: string;
2353
+ /** Returns response with indentations and line breaks. */
2354
+ prettyPrint?: boolean;
2355
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2356
+ quotaUser?: string;
2357
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2358
+ upload_protocol?: string;
2359
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2360
+ uploadType?: string;
2361
+ /** Request body */
1869
2362
  resource: GoogleAnalyticsAdminV1alphaProvisionAccountTicketRequest;
1870
2363
  }): Request<GoogleAnalyticsAdminV1alphaProvisionAccountTicketResponse>;
1871
2364
  provisionAccountTicket(request: {
@@ -1892,15 +2385,272 @@ declare namespace gapi.client {
1892
2385
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1893
2386
  uploadType?: string;
1894
2387
  },
1895
- body: GoogleAnalyticsAdminV1alphaProvisionAccountTicketRequest): Request<GoogleAnalyticsAdminV1alphaProvisionAccountTicketResponse>;
1896
- /** Searches through all changes to an account or its children given the specified set of filters. */
1897
- searchChangeHistoryEvents(request: {
2388
+ body: GoogleAnalyticsAdminV1alphaProvisionAccountTicketRequest): Request<GoogleAnalyticsAdminV1alphaProvisionAccountTicketResponse>;
2389
+ /** Searches through all changes to an account or its children given the specified set of filters. */
2390
+ searchChangeHistoryEvents(request: {
2391
+ /** V1 error format. */
2392
+ "$.xgafv"?: string;
2393
+ /** OAuth access token. */
2394
+ access_token?: string;
2395
+ /** Required. The account resource for which to return change history resources. */
2396
+ account: string;
2397
+ /** Data format for response. */
2398
+ alt?: string;
2399
+ /** JSONP */
2400
+ callback?: string;
2401
+ /** Selector specifying which fields to include in a partial response. */
2402
+ fields?: string;
2403
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
2404
+ key?: string;
2405
+ /** OAuth 2.0 token for the current user. */
2406
+ oauth_token?: string;
2407
+ /** Returns response with indentations and line breaks. */
2408
+ prettyPrint?: boolean;
2409
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2410
+ quotaUser?: string;
2411
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2412
+ upload_protocol?: string;
2413
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2414
+ uploadType?: string;
2415
+ /** Request body */
2416
+ resource: GoogleAnalyticsAdminV1alphaSearchChangeHistoryEventsRequest;
2417
+ }): Request<GoogleAnalyticsAdminV1alphaSearchChangeHistoryEventsResponse>;
2418
+ searchChangeHistoryEvents(request: {
2419
+ /** V1 error format. */
2420
+ "$.xgafv"?: string;
2421
+ /** OAuth access token. */
2422
+ access_token?: string;
2423
+ /** Required. The account resource for which to return change history resources. */
2424
+ account: string;
2425
+ /** Data format for response. */
2426
+ alt?: string;
2427
+ /** JSONP */
2428
+ callback?: string;
2429
+ /** Selector specifying which fields to include in a partial response. */
2430
+ fields?: string;
2431
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
2432
+ key?: string;
2433
+ /** OAuth 2.0 token for the current user. */
2434
+ oauth_token?: string;
2435
+ /** Returns response with indentations and line breaks. */
2436
+ prettyPrint?: boolean;
2437
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2438
+ quotaUser?: string;
2439
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2440
+ upload_protocol?: string;
2441
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2442
+ uploadType?: string;
2443
+ },
2444
+ body: GoogleAnalyticsAdminV1alphaSearchChangeHistoryEventsRequest): Request<GoogleAnalyticsAdminV1alphaSearchChangeHistoryEventsResponse>;
2445
+ accessBindings: AccessBindingsResource;
2446
+ userLinks: UserLinksResource;
2447
+ }
2448
+ interface AccountSummariesResource {
2449
+ /** Returns summaries of all accounts accessible by the caller. */
2450
+ list(request?: {
2451
+ /** V1 error format. */
2452
+ "$.xgafv"?: string;
2453
+ /** OAuth access token. */
2454
+ access_token?: string;
2455
+ /** Data format for response. */
2456
+ alt?: string;
2457
+ /** JSONP */
2458
+ callback?: string;
2459
+ /** Selector specifying which fields to include in a partial response. */
2460
+ fields?: string;
2461
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
2462
+ key?: string;
2463
+ /** OAuth 2.0 token for the current user. */
2464
+ oauth_token?: string;
2465
+ /**
2466
+ * The maximum number of AccountSummary resources to return. The service may return fewer than this value, even if there are additional pages. If unspecified, at most 50 resources
2467
+ * will be returned. The maximum value is 200; (higher values will be coerced to the maximum)
2468
+ */
2469
+ pageSize?: number;
2470
+ /**
2471
+ * A page token, received from a previous `ListAccountSummaries` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to
2472
+ * `ListAccountSummaries` must match the call that provided the page token.
2473
+ */
2474
+ pageToken?: string;
2475
+ /** Returns response with indentations and line breaks. */
2476
+ prettyPrint?: boolean;
2477
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2478
+ quotaUser?: string;
2479
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2480
+ upload_protocol?: string;
2481
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2482
+ uploadType?: string;
2483
+ }): Request<GoogleAnalyticsAdminV1alphaListAccountSummariesResponse>;
2484
+ }
2485
+ interface AccessBindingsResource {
2486
+ /**
2487
+ * Creates information about multiple access bindings to an account or property. This method is transactional. If any AccessBinding cannot be created, none of the AccessBindings will
2488
+ * be created.
2489
+ */
2490
+ batchCreate(request: {
2491
+ /** V1 error format. */
2492
+ "$.xgafv"?: string;
2493
+ /** OAuth access token. */
2494
+ access_token?: string;
2495
+ /** Data format for response. */
2496
+ alt?: string;
2497
+ /** JSONP */
2498
+ callback?: string;
2499
+ /** Selector specifying which fields to include in a partial response. */
2500
+ fields?: string;
2501
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
2502
+ key?: string;
2503
+ /** OAuth 2.0 token for the current user. */
2504
+ oauth_token?: string;
2505
+ /**
2506
+ * Required. The account or property that owns the access bindings. The parent field in the CreateAccessBindingRequest messages must either be empty or match this field. Formats: -
2507
+ * accounts/{account} - properties/{property}
2508
+ */
2509
+ parent: string;
2510
+ /** Returns response with indentations and line breaks. */
2511
+ prettyPrint?: boolean;
2512
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2513
+ quotaUser?: string;
2514
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2515
+ upload_protocol?: string;
2516
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2517
+ uploadType?: string;
2518
+ /** Request body */
2519
+ resource: GoogleAnalyticsAdminV1alphaBatchCreateAccessBindingsRequest;
2520
+ }): Request<GoogleAnalyticsAdminV1alphaBatchCreateAccessBindingsResponse>;
2521
+ batchCreate(request: {
2522
+ /** V1 error format. */
2523
+ "$.xgafv"?: string;
2524
+ /** OAuth access token. */
2525
+ access_token?: string;
2526
+ /** Data format for response. */
2527
+ alt?: string;
2528
+ /** JSONP */
2529
+ callback?: string;
2530
+ /** Selector specifying which fields to include in a partial response. */
2531
+ fields?: string;
2532
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
2533
+ key?: string;
2534
+ /** OAuth 2.0 token for the current user. */
2535
+ oauth_token?: string;
2536
+ /**
2537
+ * Required. The account or property that owns the access bindings. The parent field in the CreateAccessBindingRequest messages must either be empty or match this field. Formats: -
2538
+ * accounts/{account} - properties/{property}
2539
+ */
2540
+ parent: string;
2541
+ /** Returns response with indentations and line breaks. */
2542
+ prettyPrint?: boolean;
2543
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2544
+ quotaUser?: string;
2545
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2546
+ upload_protocol?: string;
2547
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2548
+ uploadType?: string;
2549
+ },
2550
+ body: GoogleAnalyticsAdminV1alphaBatchCreateAccessBindingsRequest): Request<GoogleAnalyticsAdminV1alphaBatchCreateAccessBindingsResponse>;
2551
+ /** Deletes information about multiple users' links to an account or property. */
2552
+ batchDelete(request: {
2553
+ /** V1 error format. */
2554
+ "$.xgafv"?: string;
2555
+ /** OAuth access token. */
2556
+ access_token?: string;
2557
+ /** Data format for response. */
2558
+ alt?: string;
2559
+ /** JSONP */
2560
+ callback?: string;
2561
+ /** Selector specifying which fields to include in a partial response. */
2562
+ fields?: string;
2563
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
2564
+ key?: string;
2565
+ /** OAuth 2.0 token for the current user. */
2566
+ oauth_token?: string;
2567
+ /**
2568
+ * Required. The account or property that owns the access bindings. The parent field in the DeleteAccessBindingRequest messages must either be empty or match this field. Formats: -
2569
+ * accounts/{account} - properties/{property}
2570
+ */
2571
+ parent: string;
2572
+ /** Returns response with indentations and line breaks. */
2573
+ prettyPrint?: boolean;
2574
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2575
+ quotaUser?: string;
2576
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2577
+ upload_protocol?: string;
2578
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2579
+ uploadType?: string;
2580
+ /** Request body */
2581
+ resource: GoogleAnalyticsAdminV1alphaBatchDeleteAccessBindingsRequest;
2582
+ }): Request<{}>;
2583
+ batchDelete(request: {
2584
+ /** V1 error format. */
2585
+ "$.xgafv"?: string;
2586
+ /** OAuth access token. */
2587
+ access_token?: string;
2588
+ /** Data format for response. */
2589
+ alt?: string;
2590
+ /** JSONP */
2591
+ callback?: string;
2592
+ /** Selector specifying which fields to include in a partial response. */
2593
+ fields?: string;
2594
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
2595
+ key?: string;
2596
+ /** OAuth 2.0 token for the current user. */
2597
+ oauth_token?: string;
2598
+ /**
2599
+ * Required. The account or property that owns the access bindings. The parent field in the DeleteAccessBindingRequest messages must either be empty or match this field. Formats: -
2600
+ * accounts/{account} - properties/{property}
2601
+ */
2602
+ parent: string;
2603
+ /** Returns response with indentations and line breaks. */
2604
+ prettyPrint?: boolean;
2605
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2606
+ quotaUser?: string;
2607
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2608
+ upload_protocol?: string;
2609
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2610
+ uploadType?: string;
2611
+ },
2612
+ body: GoogleAnalyticsAdminV1alphaBatchDeleteAccessBindingsRequest): Request<{}>;
2613
+ /** Gets information about multiple access bindings to an account or property. */
2614
+ batchGet(request?: {
2615
+ /** V1 error format. */
2616
+ "$.xgafv"?: string;
2617
+ /** OAuth access token. */
2618
+ access_token?: string;
2619
+ /** Data format for response. */
2620
+ alt?: string;
2621
+ /** JSONP */
2622
+ callback?: string;
2623
+ /** Selector specifying which fields to include in a partial response. */
2624
+ fields?: string;
2625
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
2626
+ key?: string;
2627
+ /**
2628
+ * Required. The names of the access bindings to retrieve. A maximum of 1000 access bindings can be retrieved in a batch. Formats: -
2629
+ * accounts/{account}/accessBindings/{accessBinding} - properties/{property}/accessBindings/{accessBinding}
2630
+ */
2631
+ names?: string | string[];
2632
+ /** OAuth 2.0 token for the current user. */
2633
+ oauth_token?: string;
2634
+ /**
2635
+ * Required. The account or property that owns the access bindings. The parent of all provided values for the 'names' field must match this field. Formats: - accounts/{account} -
2636
+ * properties/{property}
2637
+ */
2638
+ parent: string;
2639
+ /** Returns response with indentations and line breaks. */
2640
+ prettyPrint?: boolean;
2641
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2642
+ quotaUser?: string;
2643
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2644
+ upload_protocol?: string;
2645
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2646
+ uploadType?: string;
2647
+ }): Request<GoogleAnalyticsAdminV1alphaBatchGetAccessBindingsResponse>;
2648
+ /** Updates information about multiple access bindings to an account or property. */
2649
+ batchUpdate(request: {
1898
2650
  /** V1 error format. */
1899
2651
  "$.xgafv"?: string;
1900
2652
  /** OAuth access token. */
1901
2653
  access_token?: string;
1902
- /** Required. The account resource for which to return change history resources. */
1903
- account: string;
1904
2654
  /** Data format for response. */
1905
2655
  alt?: string;
1906
2656
  /** JSONP */
@@ -1911,6 +2661,11 @@ declare namespace gapi.client {
1911
2661
  key?: string;
1912
2662
  /** OAuth 2.0 token for the current user. */
1913
2663
  oauth_token?: string;
2664
+ /**
2665
+ * Required. The account or property that owns the access bindings. The parent field in the UpdateAccessBindingRequest messages must either be empty or match this field. Formats: -
2666
+ * accounts/{account} - properties/{property}
2667
+ */
2668
+ parent: string;
1914
2669
  /** Returns response with indentations and line breaks. */
1915
2670
  prettyPrint?: boolean;
1916
2671
  /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
@@ -1920,15 +2675,13 @@ declare namespace gapi.client {
1920
2675
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1921
2676
  uploadType?: string;
1922
2677
  /** Request body */
1923
- resource: GoogleAnalyticsAdminV1alphaSearchChangeHistoryEventsRequest;
1924
- }): Request<GoogleAnalyticsAdminV1alphaSearchChangeHistoryEventsResponse>;
1925
- searchChangeHistoryEvents(request: {
2678
+ resource: GoogleAnalyticsAdminV1alphaBatchUpdateAccessBindingsRequest;
2679
+ }): Request<GoogleAnalyticsAdminV1alphaBatchUpdateAccessBindingsResponse>;
2680
+ batchUpdate(request: {
1926
2681
  /** V1 error format. */
1927
2682
  "$.xgafv"?: string;
1928
2683
  /** OAuth access token. */
1929
2684
  access_token?: string;
1930
- /** Required. The account resource for which to return change history resources. */
1931
- account: string;
1932
2685
  /** Data format for response. */
1933
2686
  alt?: string;
1934
2687
  /** JSONP */
@@ -1939,6 +2692,11 @@ declare namespace gapi.client {
1939
2692
  key?: string;
1940
2693
  /** OAuth 2.0 token for the current user. */
1941
2694
  oauth_token?: string;
2695
+ /**
2696
+ * Required. The account or property that owns the access bindings. The parent field in the UpdateAccessBindingRequest messages must either be empty or match this field. Formats: -
2697
+ * accounts/{account} - properties/{property}
2698
+ */
2699
+ parent: string;
1942
2700
  /** Returns response with indentations and line breaks. */
1943
2701
  prettyPrint?: boolean;
1944
2702
  /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
@@ -1948,11 +2706,118 @@ declare namespace gapi.client {
1948
2706
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1949
2707
  uploadType?: string;
1950
2708
  },
1951
- body: GoogleAnalyticsAdminV1alphaSearchChangeHistoryEventsRequest): Request<GoogleAnalyticsAdminV1alphaSearchChangeHistoryEventsResponse>;
1952
- userLinks: UserLinksResource;
1953
- }
1954
- interface AccountSummariesResource {
1955
- /** Returns summaries of all accounts accessible by the caller. */
2709
+ body: GoogleAnalyticsAdminV1alphaBatchUpdateAccessBindingsRequest): Request<GoogleAnalyticsAdminV1alphaBatchUpdateAccessBindingsResponse>;
2710
+ /** Creates an access binding on an account or property. */
2711
+ create(request: {
2712
+ /** V1 error format. */
2713
+ "$.xgafv"?: string;
2714
+ /** OAuth access token. */
2715
+ access_token?: string;
2716
+ /** Data format for response. */
2717
+ alt?: string;
2718
+ /** JSONP */
2719
+ callback?: string;
2720
+ /** Selector specifying which fields to include in a partial response. */
2721
+ fields?: string;
2722
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
2723
+ key?: string;
2724
+ /** OAuth 2.0 token for the current user. */
2725
+ oauth_token?: string;
2726
+ /** Required. Formats: - accounts/{account} - properties/{property} */
2727
+ parent: string;
2728
+ /** Returns response with indentations and line breaks. */
2729
+ prettyPrint?: boolean;
2730
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2731
+ quotaUser?: string;
2732
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2733
+ upload_protocol?: string;
2734
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2735
+ uploadType?: string;
2736
+ /** Request body */
2737
+ resource: GoogleAnalyticsAdminV1alphaAccessBinding;
2738
+ }): Request<GoogleAnalyticsAdminV1alphaAccessBinding>;
2739
+ create(request: {
2740
+ /** V1 error format. */
2741
+ "$.xgafv"?: string;
2742
+ /** OAuth access token. */
2743
+ access_token?: string;
2744
+ /** Data format for response. */
2745
+ alt?: string;
2746
+ /** JSONP */
2747
+ callback?: string;
2748
+ /** Selector specifying which fields to include in a partial response. */
2749
+ fields?: string;
2750
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
2751
+ key?: string;
2752
+ /** OAuth 2.0 token for the current user. */
2753
+ oauth_token?: string;
2754
+ /** Required. Formats: - accounts/{account} - properties/{property} */
2755
+ parent: string;
2756
+ /** Returns response with indentations and line breaks. */
2757
+ prettyPrint?: boolean;
2758
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2759
+ quotaUser?: string;
2760
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2761
+ upload_protocol?: string;
2762
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2763
+ uploadType?: string;
2764
+ },
2765
+ body: GoogleAnalyticsAdminV1alphaAccessBinding): Request<GoogleAnalyticsAdminV1alphaAccessBinding>;
2766
+ /** Deletes an access binding on an account or property. */
2767
+ delete(request?: {
2768
+ /** V1 error format. */
2769
+ "$.xgafv"?: string;
2770
+ /** OAuth access token. */
2771
+ access_token?: string;
2772
+ /** Data format for response. */
2773
+ alt?: string;
2774
+ /** JSONP */
2775
+ callback?: string;
2776
+ /** Selector specifying which fields to include in a partial response. */
2777
+ fields?: string;
2778
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
2779
+ key?: string;
2780
+ /** Required. Formats: - accounts/{account}/accessBindings/{accessBinding} - properties/{property}/accessBindings/{accessBinding} */
2781
+ name: string;
2782
+ /** OAuth 2.0 token for the current user. */
2783
+ oauth_token?: string;
2784
+ /** Returns response with indentations and line breaks. */
2785
+ prettyPrint?: boolean;
2786
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2787
+ quotaUser?: string;
2788
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2789
+ upload_protocol?: string;
2790
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2791
+ uploadType?: string;
2792
+ }): Request<{}>;
2793
+ /** Gets information about an access binding. */
2794
+ get(request?: {
2795
+ /** V1 error format. */
2796
+ "$.xgafv"?: string;
2797
+ /** OAuth access token. */
2798
+ access_token?: string;
2799
+ /** Data format for response. */
2800
+ alt?: string;
2801
+ /** JSONP */
2802
+ callback?: string;
2803
+ /** Selector specifying which fields to include in a partial response. */
2804
+ fields?: string;
2805
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
2806
+ key?: string;
2807
+ /** Required. The name of the access binding to retrieve. Formats: - accounts/{account}/accessBindings/{accessBinding} - properties/{property}/accessBindings/{accessBinding} */
2808
+ name: string;
2809
+ /** OAuth 2.0 token for the current user. */
2810
+ oauth_token?: string;
2811
+ /** Returns response with indentations and line breaks. */
2812
+ prettyPrint?: boolean;
2813
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2814
+ quotaUser?: string;
2815
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2816
+ upload_protocol?: string;
2817
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2818
+ uploadType?: string;
2819
+ }): Request<GoogleAnalyticsAdminV1alphaAccessBinding>;
2820
+ /** Lists all access bindings on an account or property. */
1956
2821
  list(request?: {
1957
2822
  /** V1 error format. */
1958
2823
  "$.xgafv"?: string;
@@ -1969,15 +2834,17 @@ declare namespace gapi.client {
1969
2834
  /** OAuth 2.0 token for the current user. */
1970
2835
  oauth_token?: string;
1971
2836
  /**
1972
- * The maximum number of AccountSummary resources to return. The service may return fewer than this value, even if there are additional pages. If unspecified, at most 50 resources
1973
- * will be returned. The maximum value is 200; (higher values will be coerced to the maximum)
2837
+ * The maximum number of access bindings to return. The service may return fewer than this value. If unspecified, at most 200 access bindings will be returned. The maximum value is
2838
+ * 500; values above 500 will be coerced to 500.
1974
2839
  */
1975
2840
  pageSize?: number;
1976
2841
  /**
1977
- * A page token, received from a previous `ListAccountSummaries` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to
1978
- * `ListAccountSummaries` must match the call that provided the page token.
2842
+ * A page token, received from a previous `ListAccessBindings` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to
2843
+ * `ListAccessBindings` must match the call that provided the page token.
1979
2844
  */
1980
2845
  pageToken?: string;
2846
+ /** Required. Formats: - accounts/{account} - properties/{property} */
2847
+ parent: string;
1981
2848
  /** Returns response with indentations and line breaks. */
1982
2849
  prettyPrint?: boolean;
1983
2850
  /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
@@ -1986,7 +2853,69 @@ declare namespace gapi.client {
1986
2853
  upload_protocol?: string;
1987
2854
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1988
2855
  uploadType?: string;
1989
- }): Request<GoogleAnalyticsAdminV1alphaListAccountSummariesResponse>;
2856
+ }): Request<GoogleAnalyticsAdminV1alphaListAccessBindingsResponse>;
2857
+ /** Updates an access binding on an account or property. */
2858
+ patch(request: {
2859
+ /** V1 error format. */
2860
+ "$.xgafv"?: string;
2861
+ /** OAuth access token. */
2862
+ access_token?: string;
2863
+ /** Data format for response. */
2864
+ alt?: string;
2865
+ /** JSONP */
2866
+ callback?: string;
2867
+ /** Selector specifying which fields to include in a partial response. */
2868
+ fields?: string;
2869
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
2870
+ key?: string;
2871
+ /**
2872
+ * Output only. Resource name of this binding. Format: accounts/{account}/accessBindings/{access_binding} or properties/{property}/accessBindings/{access_binding} Example:
2873
+ * "accounts/100/accessBindings/200"
2874
+ */
2875
+ name: string;
2876
+ /** OAuth 2.0 token for the current user. */
2877
+ oauth_token?: string;
2878
+ /** Returns response with indentations and line breaks. */
2879
+ prettyPrint?: boolean;
2880
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2881
+ quotaUser?: string;
2882
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2883
+ upload_protocol?: string;
2884
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2885
+ uploadType?: string;
2886
+ /** Request body */
2887
+ resource: GoogleAnalyticsAdminV1alphaAccessBinding;
2888
+ }): Request<GoogleAnalyticsAdminV1alphaAccessBinding>;
2889
+ patch(request: {
2890
+ /** V1 error format. */
2891
+ "$.xgafv"?: string;
2892
+ /** OAuth access token. */
2893
+ access_token?: string;
2894
+ /** Data format for response. */
2895
+ alt?: string;
2896
+ /** JSONP */
2897
+ callback?: string;
2898
+ /** Selector specifying which fields to include in a partial response. */
2899
+ fields?: string;
2900
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
2901
+ key?: string;
2902
+ /**
2903
+ * Output only. Resource name of this binding. Format: accounts/{account}/accessBindings/{access_binding} or properties/{property}/accessBindings/{access_binding} Example:
2904
+ * "accounts/100/accessBindings/200"
2905
+ */
2906
+ name: string;
2907
+ /** OAuth 2.0 token for the current user. */
2908
+ oauth_token?: string;
2909
+ /** Returns response with indentations and line breaks. */
2910
+ prettyPrint?: boolean;
2911
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2912
+ quotaUser?: string;
2913
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2914
+ upload_protocol?: string;
2915
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2916
+ uploadType?: string;
2917
+ },
2918
+ body: GoogleAnalyticsAdminV1alphaAccessBinding): Request<GoogleAnalyticsAdminV1alphaAccessBinding>;
1990
2919
  }
1991
2920
  interface AudiencesResource {
1992
2921
  /** Archives an Audience on a property. */
@@ -5574,6 +6503,7 @@ declare namespace gapi.client {
5574
6503
  uploadType?: string;
5575
6504
  },
5576
6505
  body: GoogleAnalyticsAdminV1alphaGoogleSignalsSettings): Request<GoogleAnalyticsAdminV1alphaGoogleSignalsSettings>;
6506
+ accessBindings: AccessBindingsResource;
5577
6507
  audiences: AudiencesResource;
5578
6508
  bigQueryLinks: BigQueryLinksResource;
5579
6509
  conversionEvents: ConversionEventsResource;