@maxim_mazurok/gapi.client.logging-v2 0.0.20230211 → 0.0.20230224

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 +1046 -134
  2. package/package.json +1 -1
  3. package/tests.ts +136 -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://logging.googleapis.com/$discovery/rest?version=v2
12
- // Revision: 20230211
12
+ // Revision: 20230224
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -22,6 +22,13 @@ declare namespace gapi.client {
22
22
  function load(name: "logging", version: "v2", callback: () => any): void;
23
23
 
24
24
  namespace logging {
25
+ interface BigQueryDataset {
26
+ /**
27
+ * Output only. The full resource name of the BigQuery dataset. The DATASET_ID will match the ID of the link, so the link must match the naming restrictions of BigQuery datasets
28
+ * (alphanumeric characters and underscores only).The dataset will have a resource path of "bigquery.googleapis.com/projects/PROJECT_ID/datasets/DATASET_ID"
29
+ */
30
+ datasetId?: string;
31
+ }
25
32
  interface BigQueryOptions {
26
33
  /**
27
34
  * Optional. Whether to use BigQuery's partition tables (https://cloud.google.com/bigquery/docs/partitioned-tables). By default, Cloud Logging creates dated tables based on the log
@@ -125,6 +132,26 @@ declare namespace gapi.client {
125
132
  /** Required. The resource in which to create the log bucket: "projects/[PROJECT_ID]/locations/[LOCATION_ID]" For example:"projects/my-project/locations/global" */
126
133
  parent?: string;
127
134
  }
135
+ interface CreateLinkRequest {
136
+ /** Required. The new link. */
137
+ link?: Link;
138
+ /** Required. The ID to use for the link. The link_id can have up to 100 characters. A valid link_id must only have alphanumeric characters and underscores within it. */
139
+ linkId?: string;
140
+ /**
141
+ * Required. The full resource name of the bucket to create a link for. "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
142
+ * "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
143
+ * "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
144
+ */
145
+ parent?: string;
146
+ }
147
+ interface DeleteLinkRequest {
148
+ /**
149
+ * Required. The full resource name of the link to delete."projects/PROJECT_ID/locations/LOCATION_ID/buckets/BUCKET_ID/links/LINK_ID"
150
+ * "organizations/ORGANIZATION_ID/locations/LOCATION_ID/buckets/BUCKET_ID/links/LINK_ID" "billingAccounts/BILLING_ACCOUNT_ID/locations/LOCATION_ID/buckets/BUCKET_ID/links/LINK_ID"
151
+ * "folders/FOLDER_ID/locations/LOCATION_ID/buckets/BUCKET_ID/links/LINK_ID"
152
+ */
153
+ name?: string;
154
+ }
128
155
  // tslint:disable-next-line:no-empty-interface
129
156
  interface Empty {
130
157
  }
@@ -205,6 +232,38 @@ declare namespace gapi.client {
205
232
  /** Must be greater than 0. */
206
233
  width?: number;
207
234
  }
235
+ interface Link {
236
+ /**
237
+ * The information of a BigQuery Dataset. When a link is created, a BigQuery dataset is created along with it, in the same project as the LogBucket it's linked to. This dataset will
238
+ * also have BigQuery Views corresponding to the LogViews in the bucket.
239
+ */
240
+ bigqueryDataset?: BigQueryDataset;
241
+ /** Output only. The creation timestamp of the link. */
242
+ createTime?: string;
243
+ /** Describes this link.The maximum length of the description is 8000 characters. */
244
+ description?: string;
245
+ /** Output only. The resource lifecycle state. */
246
+ lifecycleState?: string;
247
+ /**
248
+ * The resource name of the link. The name can have up to 100 characters. A valid link id (at the end of the link name) must only have alphanumeric characters and underscores within
249
+ * it. "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]" "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]"
250
+ * "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]" "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]"
251
+ * For example:`projects/my-project/locations/global/buckets/my-bucket/links/my_link
252
+ */
253
+ name?: string;
254
+ }
255
+ interface LinkMetadata {
256
+ /** CreateLink RPC request. */
257
+ createLinkRequest?: CreateLinkRequest;
258
+ /** DeleteLink RPC request. */
259
+ deleteLinkRequest?: DeleteLinkRequest;
260
+ /** The end time of an operation. */
261
+ endTime?: string;
262
+ /** The start time of an operation. */
263
+ startTime?: string;
264
+ /** State of an operation. */
265
+ state?: string;
266
+ }
208
267
  interface ListBucketsResponse {
209
268
  /** A list of buckets. */
210
269
  buckets?: LogBucket[];
@@ -223,6 +282,15 @@ declare namespace gapi.client {
223
282
  */
224
283
  nextPageToken?: string;
225
284
  }
285
+ interface ListLinksResponse {
286
+ /** A list of links. */
287
+ links?: Link[];
288
+ /**
289
+ * If there might be more results than those appearing in this response, then nextPageToken is included. To get the next set of results, call the same method again using the value of
290
+ * nextPageToken as pageToken.
291
+ */
292
+ nextPageToken?: string;
293
+ }
226
294
  interface ListLocationsResponse {
227
295
  /** A list of locations that matches the specified filter in the request. */
228
296
  locations?: Location[];
@@ -337,6 +405,10 @@ declare namespace gapi.client {
337
405
  /** Resource name for the location, which may vary between implementations. For example: "projects/example-project/locations/us-east1" */
338
406
  name?: string;
339
407
  }
408
+ interface LocationMetadata {
409
+ /** Indicates whether or not Log Analytics features are supported in the given location. */
410
+ logAnalyticsEnabled?: boolean;
411
+ }
340
412
  interface LogBucket {
341
413
  /** Whether log analytics is enabled for this bucket.Once enabled, log analytics features cannot be disabled. */
342
414
  analyticsEnabled?: boolean;
@@ -1269,6 +1341,173 @@ declare namespace gapi.client {
1269
1341
  },
1270
1342
  body: LogExclusion): Request<LogExclusion>;
1271
1343
  }
1344
+ interface LinksResource {
1345
+ /** Asynchronously creates linked dataset in BigQuery which makes it possible to use BugQuery to read the logs stored in the bucket. A bucket may currently only contain one link. */
1346
+ create(request: {
1347
+ /** V1 error format. */
1348
+ "$.xgafv"?: string;
1349
+ /** OAuth access token. */
1350
+ access_token?: string;
1351
+ /** Data format for response. */
1352
+ alt?: string;
1353
+ /** JSONP */
1354
+ callback?: string;
1355
+ /** Selector specifying which fields to include in a partial response. */
1356
+ fields?: string;
1357
+ /** 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. */
1358
+ key?: string;
1359
+ /** Required. The ID to use for the link. The link_id can have up to 100 characters. A valid link_id must only have alphanumeric characters and underscores within it. */
1360
+ linkId?: string;
1361
+ /** OAuth 2.0 token for the current user. */
1362
+ oauth_token?: string;
1363
+ /**
1364
+ * Required. The full resource name of the bucket to create a link for. "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
1365
+ * "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
1366
+ * "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
1367
+ */
1368
+ parent: string;
1369
+ /** Returns response with indentations and line breaks. */
1370
+ prettyPrint?: boolean;
1371
+ /** 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. */
1372
+ quotaUser?: string;
1373
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1374
+ upload_protocol?: string;
1375
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1376
+ uploadType?: string;
1377
+ /** Request body */
1378
+ resource: Link;
1379
+ }): Request<Operation>;
1380
+ create(request: {
1381
+ /** V1 error format. */
1382
+ "$.xgafv"?: string;
1383
+ /** OAuth access token. */
1384
+ access_token?: string;
1385
+ /** Data format for response. */
1386
+ alt?: string;
1387
+ /** JSONP */
1388
+ callback?: string;
1389
+ /** Selector specifying which fields to include in a partial response. */
1390
+ fields?: string;
1391
+ /** 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. */
1392
+ key?: string;
1393
+ /** Required. The ID to use for the link. The link_id can have up to 100 characters. A valid link_id must only have alphanumeric characters and underscores within it. */
1394
+ linkId?: string;
1395
+ /** OAuth 2.0 token for the current user. */
1396
+ oauth_token?: string;
1397
+ /**
1398
+ * Required. The full resource name of the bucket to create a link for. "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
1399
+ * "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
1400
+ * "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
1401
+ */
1402
+ parent: string;
1403
+ /** Returns response with indentations and line breaks. */
1404
+ prettyPrint?: boolean;
1405
+ /** 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. */
1406
+ quotaUser?: string;
1407
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1408
+ upload_protocol?: string;
1409
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1410
+ uploadType?: string;
1411
+ },
1412
+ body: Link): Request<Operation>;
1413
+ /** Deletes a link. This will also delete the corresponding BigQuery linked dataset. */
1414
+ delete(request?: {
1415
+ /** V1 error format. */
1416
+ "$.xgafv"?: string;
1417
+ /** OAuth access token. */
1418
+ access_token?: string;
1419
+ /** Data format for response. */
1420
+ alt?: string;
1421
+ /** JSONP */
1422
+ callback?: string;
1423
+ /** Selector specifying which fields to include in a partial response. */
1424
+ fields?: string;
1425
+ /** 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. */
1426
+ key?: string;
1427
+ /**
1428
+ * Required. The full resource name of the link to delete."projects/PROJECT_ID/locations/LOCATION_ID/buckets/BUCKET_ID/links/LINK_ID"
1429
+ * "organizations/ORGANIZATION_ID/locations/LOCATION_ID/buckets/BUCKET_ID/links/LINK_ID" "billingAccounts/BILLING_ACCOUNT_ID/locations/LOCATION_ID/buckets/BUCKET_ID/links/LINK_ID"
1430
+ * "folders/FOLDER_ID/locations/LOCATION_ID/buckets/BUCKET_ID/links/LINK_ID"
1431
+ */
1432
+ name: string;
1433
+ /** OAuth 2.0 token for the current user. */
1434
+ oauth_token?: string;
1435
+ /** Returns response with indentations and line breaks. */
1436
+ prettyPrint?: boolean;
1437
+ /** 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. */
1438
+ quotaUser?: string;
1439
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1440
+ upload_protocol?: string;
1441
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1442
+ uploadType?: string;
1443
+ }): Request<Operation>;
1444
+ /** Gets a link. */
1445
+ get(request?: {
1446
+ /** V1 error format. */
1447
+ "$.xgafv"?: string;
1448
+ /** OAuth access token. */
1449
+ access_token?: string;
1450
+ /** Data format for response. */
1451
+ alt?: string;
1452
+ /** JSONP */
1453
+ callback?: string;
1454
+ /** Selector specifying which fields to include in a partial response. */
1455
+ fields?: string;
1456
+ /** 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
+ key?: string;
1458
+ /**
1459
+ * Required. The resource name of the link:"projects/PROJECT_ID/locations/LOCATION_ID/buckets/BUCKET_ID/links/LINK_ID"
1460
+ * "organizations/ORGANIZATION_ID/locations/LOCATION_ID/buckets/BUCKET_ID/links/LINK_ID" "billingAccounts/BILLING_ACCOUNT_ID/locations/LOCATION_ID/buckets/BUCKET_ID/links/LINK_ID"
1461
+ * "folders/FOLDER_ID/locations/LOCATION_ID/buckets/BUCKET_ID/links/LINK_ID
1462
+ */
1463
+ name: string;
1464
+ /** OAuth 2.0 token for the current user. */
1465
+ oauth_token?: string;
1466
+ /** Returns response with indentations and line breaks. */
1467
+ prettyPrint?: boolean;
1468
+ /** 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. */
1469
+ quotaUser?: string;
1470
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1471
+ upload_protocol?: string;
1472
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1473
+ uploadType?: string;
1474
+ }): Request<Link>;
1475
+ /** Lists links. */
1476
+ list(request?: {
1477
+ /** V1 error format. */
1478
+ "$.xgafv"?: string;
1479
+ /** OAuth access token. */
1480
+ access_token?: string;
1481
+ /** Data format for response. */
1482
+ alt?: string;
1483
+ /** JSONP */
1484
+ callback?: string;
1485
+ /** Selector specifying which fields to include in a partial response. */
1486
+ fields?: string;
1487
+ /** 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. */
1488
+ key?: string;
1489
+ /** OAuth 2.0 token for the current user. */
1490
+ oauth_token?: string;
1491
+ /** Optional. The maximum number of results to return from this request. */
1492
+ pageSize?: number;
1493
+ /** Optional. If present, then retrieve the next batch of results from the preceding call to this method. pageToken must be the value of nextPageToken from the previous response. */
1494
+ pageToken?: string;
1495
+ /**
1496
+ * Required. The parent resource whose links are to be listed:"projects/PROJECT_ID/locations/LOCATION_ID/buckets/BUCKET_ID/links/"
1497
+ * "organizations/ORGANIZATION_ID/locations/LOCATION_ID/buckets/BUCKET_ID/" "billingAccounts/BILLING_ACCOUNT_ID/locations/LOCATION_ID/buckets/BUCKET_ID/"
1498
+ * "folders/FOLDER_ID/locations/LOCATION_ID/buckets/BUCKET_ID/
1499
+ */
1500
+ parent: string;
1501
+ /** Returns response with indentations and line breaks. */
1502
+ prettyPrint?: boolean;
1503
+ /** 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. */
1504
+ quotaUser?: string;
1505
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1506
+ upload_protocol?: string;
1507
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1508
+ uploadType?: string;
1509
+ }): Request<ListLinksResponse>;
1510
+ }
1272
1511
  interface LogsResource {
1273
1512
  /** Lists the logs in projects, organizations, folders, or billing accounts. Only logs that have entries are listed. */
1274
1513
  list(request?: {
@@ -2011,6 +2250,7 @@ declare namespace gapi.client {
2011
2250
  uploadType?: string;
2012
2251
  },
2013
2252
  body: LogBucket): Request<Operation>;
2253
+ links: LinksResource;
2014
2254
  views: ViewsResource;
2015
2255
  }
2016
2256
  interface OperationsResource {
@@ -3438,9 +3678,9 @@ declare namespace gapi.client {
3438
3678
  },
3439
3679
  body: LogExclusion): Request<LogExclusion>;
3440
3680
  }
3441
- interface LogsResource {
3442
- /** Lists the logs in projects, organizations, folders, or billing accounts. Only logs that have entries are listed. */
3443
- list(request?: {
3681
+ interface LinksResource {
3682
+ /** Asynchronously creates linked dataset in BigQuery which makes it possible to use BugQuery to read the logs stored in the bucket. A bucket may currently only contain one link. */
3683
+ create(request: {
3444
3684
  /** V1 error format. */
3445
3685
  "$.xgafv"?: string;
3446
3686
  /** OAuth access token. */
@@ -3453,40 +3693,27 @@ declare namespace gapi.client {
3453
3693
  fields?: string;
3454
3694
  /** 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. */
3455
3695
  key?: string;
3696
+ /** Required. The ID to use for the link. The link_id can have up to 100 characters. A valid link_id must only have alphanumeric characters and underscores within it. */
3697
+ linkId?: string;
3456
3698
  /** OAuth 2.0 token for the current user. */
3457
3699
  oauth_token?: string;
3458
3700
  /**
3459
- * Optional. The maximum number of results to return from this request. Non-positive values are ignored. The presence of nextPageToken in the response indicates that more results
3460
- * might be available.
3461
- */
3462
- pageSize?: number;
3463
- /**
3464
- * Optional. If present, then retrieve the next batch of results from the preceding call to this method. pageToken must be the value of nextPageToken from the previous response.
3465
- * The values of other method parameters should be identical to those in the previous call.
3701
+ * Required. The full resource name of the bucket to create a link for. "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
3702
+ * "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
3703
+ * "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
3466
3704
  */
3467
- pageToken?: string;
3468
- /** Required. The resource name that owns the logs: projects/[PROJECT_ID] organizations/[ORGANIZATION_ID] billingAccounts/[BILLING_ACCOUNT_ID] folders/[FOLDER_ID] */
3469
3705
  parent: string;
3470
3706
  /** Returns response with indentations and line breaks. */
3471
3707
  prettyPrint?: boolean;
3472
3708
  /** 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. */
3473
3709
  quotaUser?: string;
3474
- /**
3475
- * Optional. The resource name that owns the logs: projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]
3476
- * organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]
3477
- * billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]
3478
- * folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]To support legacy queries, it could also be: projects/[PROJECT_ID] organizations/[ORGANIZATION_ID]
3479
- * billingAccounts/[BILLING_ACCOUNT_ID] folders/[FOLDER_ID]
3480
- */
3481
- resourceNames?: string | string[];
3482
3710
  /** Upload protocol for media (e.g. "raw", "multipart"). */
3483
3711
  upload_protocol?: string;
3484
3712
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3485
3713
  uploadType?: string;
3486
- }): Request<ListLogsResponse>;
3487
- }
3488
- interface ViewsResource {
3489
- /** Creates a view over log entries in a log bucket. A bucket may contain a maximum of 30 views. */
3714
+ /** Request body */
3715
+ resource: Link;
3716
+ }): Request<Operation>;
3490
3717
  create(request: {
3491
3718
  /** V1 error format. */
3492
3719
  "$.xgafv"?: string;
@@ -3500,11 +3727,14 @@ declare namespace gapi.client {
3500
3727
  fields?: string;
3501
3728
  /** 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. */
3502
3729
  key?: string;
3730
+ /** Required. The ID to use for the link. The link_id can have up to 100 characters. A valid link_id must only have alphanumeric characters and underscores within it. */
3731
+ linkId?: string;
3503
3732
  /** OAuth 2.0 token for the current user. */
3504
3733
  oauth_token?: string;
3505
3734
  /**
3506
- * Required. The bucket in which to create the view `"projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"` For
3507
- * example:"projects/my-project/locations/global/buckets/my-bucket"
3735
+ * Required. The full resource name of the bucket to create a link for. "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
3736
+ * "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
3737
+ * "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
3508
3738
  */
3509
3739
  parent: string;
3510
3740
  /** Returns response with indentations and line breaks. */
@@ -3515,12 +3745,10 @@ declare namespace gapi.client {
3515
3745
  upload_protocol?: string;
3516
3746
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3517
3747
  uploadType?: string;
3518
- /** Required. A client-assigned identifier such as "my-view". Identifiers are limited to 100 characters and can include only letters, digits, underscores, hyphens, and periods. */
3519
- viewId?: string;
3520
- /** Request body */
3521
- resource: LogView;
3522
- }): Request<LogView>;
3523
- create(request: {
3748
+ },
3749
+ body: Link): Request<Operation>;
3750
+ /** Deletes a link. This will also delete the corresponding BigQuery linked dataset. */
3751
+ delete(request?: {
3524
3752
  /** V1 error format. */
3525
3753
  "$.xgafv"?: string;
3526
3754
  /** OAuth access token. */
@@ -3533,13 +3761,14 @@ declare namespace gapi.client {
3533
3761
  fields?: string;
3534
3762
  /** 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. */
3535
3763
  key?: string;
3536
- /** OAuth 2.0 token for the current user. */
3537
- oauth_token?: string;
3538
3764
  /**
3539
- * Required. The bucket in which to create the view `"projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"` For
3540
- * example:"projects/my-project/locations/global/buckets/my-bucket"
3765
+ * Required. The full resource name of the link to delete."projects/PROJECT_ID/locations/LOCATION_ID/buckets/BUCKET_ID/links/LINK_ID"
3766
+ * "organizations/ORGANIZATION_ID/locations/LOCATION_ID/buckets/BUCKET_ID/links/LINK_ID" "billingAccounts/BILLING_ACCOUNT_ID/locations/LOCATION_ID/buckets/BUCKET_ID/links/LINK_ID"
3767
+ * "folders/FOLDER_ID/locations/LOCATION_ID/buckets/BUCKET_ID/links/LINK_ID"
3541
3768
  */
3542
- parent: string;
3769
+ name: string;
3770
+ /** OAuth 2.0 token for the current user. */
3771
+ oauth_token?: string;
3543
3772
  /** Returns response with indentations and line breaks. */
3544
3773
  prettyPrint?: boolean;
3545
3774
  /** 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. */
@@ -3548,15 +3777,9 @@ declare namespace gapi.client {
3548
3777
  upload_protocol?: string;
3549
3778
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3550
3779
  uploadType?: string;
3551
- /** Required. A client-assigned identifier such as "my-view". Identifiers are limited to 100 characters and can include only letters, digits, underscores, hyphens, and periods. */
3552
- viewId?: string;
3553
- },
3554
- body: LogView): Request<LogView>;
3555
- /**
3556
- * Deletes a view on a log bucket. If an UNAVAILABLE error is returned, this indicates that system is not in a state where it can delete the view. If this occurs, please try again in a
3557
- * few minutes.
3558
- */
3559
- delete(request?: {
3780
+ }): Request<Operation>;
3781
+ /** Gets a link. */
3782
+ get(request?: {
3560
3783
  /** V1 error format. */
3561
3784
  "$.xgafv"?: string;
3562
3785
  /** OAuth access token. */
@@ -3570,8 +3793,9 @@ declare namespace gapi.client {
3570
3793
  /** 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. */
3571
3794
  key?: string;
3572
3795
  /**
3573
- * Required. The full resource name of the view to delete: "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]" For
3574
- * example:"projects/my-project/locations/global/buckets/my-bucket/views/my-view"
3796
+ * Required. The resource name of the link:"projects/PROJECT_ID/locations/LOCATION_ID/buckets/BUCKET_ID/links/LINK_ID"
3797
+ * "organizations/ORGANIZATION_ID/locations/LOCATION_ID/buckets/BUCKET_ID/links/LINK_ID" "billingAccounts/BILLING_ACCOUNT_ID/locations/LOCATION_ID/buckets/BUCKET_ID/links/LINK_ID"
3798
+ * "folders/FOLDER_ID/locations/LOCATION_ID/buckets/BUCKET_ID/links/LINK_ID
3575
3799
  */
3576
3800
  name: string;
3577
3801
  /** OAuth 2.0 token for the current user. */
@@ -3584,9 +3808,9 @@ declare namespace gapi.client {
3584
3808
  upload_protocol?: string;
3585
3809
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3586
3810
  uploadType?: string;
3587
- }): Request<{}>;
3588
- /** Gets a view on a log bucket.. */
3589
- get(request?: {
3811
+ }): Request<Link>;
3812
+ /** Lists links. */
3813
+ list(request?: {
3590
3814
  /** V1 error format. */
3591
3815
  "$.xgafv"?: string;
3592
3816
  /** OAuth access token. */
@@ -3599,13 +3823,18 @@ declare namespace gapi.client {
3599
3823
  fields?: string;
3600
3824
  /** 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. */
3601
3825
  key?: string;
3602
- /**
3603
- * Required. The resource name of the policy: "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]" For
3604
- * example:"projects/my-project/locations/global/buckets/my-bucket/views/my-view"
3605
- */
3606
- name: string;
3607
3826
  /** OAuth 2.0 token for the current user. */
3608
3827
  oauth_token?: string;
3828
+ /** Optional. The maximum number of results to return from this request. */
3829
+ pageSize?: number;
3830
+ /** Optional. If present, then retrieve the next batch of results from the preceding call to this method. pageToken must be the value of nextPageToken from the previous response. */
3831
+ pageToken?: string;
3832
+ /**
3833
+ * Required. The parent resource whose links are to be listed:"projects/PROJECT_ID/locations/LOCATION_ID/buckets/BUCKET_ID/links/"
3834
+ * "organizations/ORGANIZATION_ID/locations/LOCATION_ID/buckets/BUCKET_ID/" "billingAccounts/BILLING_ACCOUNT_ID/locations/LOCATION_ID/buckets/BUCKET_ID/"
3835
+ * "folders/FOLDER_ID/locations/LOCATION_ID/buckets/BUCKET_ID/
3836
+ */
3837
+ parent: string;
3609
3838
  /** Returns response with indentations and line breaks. */
3610
3839
  prettyPrint?: boolean;
3611
3840
  /** 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. */
@@ -3614,8 +3843,10 @@ declare namespace gapi.client {
3614
3843
  upload_protocol?: string;
3615
3844
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3616
3845
  uploadType?: string;
3617
- }): Request<LogView>;
3618
- /** Lists views on a log bucket. */
3846
+ }): Request<ListLinksResponse>;
3847
+ }
3848
+ interface LogsResource {
3849
+ /** Lists the logs in projects, organizations, folders, or billing accounts. Only logs that have entries are listed. */
3619
3850
  list(request?: {
3620
3851
  /** V1 error format. */
3621
3852
  "$.xgafv"?: string;
@@ -3632,7 +3863,7 @@ declare namespace gapi.client {
3632
3863
  /** OAuth 2.0 token for the current user. */
3633
3864
  oauth_token?: string;
3634
3865
  /**
3635
- * Optional. The maximum number of results to return from this request.Non-positive values are ignored. The presence of nextPageToken in the response indicates that more results
3866
+ * Optional. The maximum number of results to return from this request. Non-positive values are ignored. The presence of nextPageToken in the response indicates that more results
3636
3867
  * might be available.
3637
3868
  */
3638
3869
  pageSize?: number;
@@ -3641,13 +3872,189 @@ declare namespace gapi.client {
3641
3872
  * The values of other method parameters should be identical to those in the previous call.
3642
3873
  */
3643
3874
  pageToken?: string;
3644
- /** Required. The bucket whose views are to be listed: "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" */
3875
+ /** Required. The resource name that owns the logs: projects/[PROJECT_ID] organizations/[ORGANIZATION_ID] billingAccounts/[BILLING_ACCOUNT_ID] folders/[FOLDER_ID] */
3645
3876
  parent: string;
3646
3877
  /** Returns response with indentations and line breaks. */
3647
3878
  prettyPrint?: boolean;
3648
3879
  /** 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. */
3649
3880
  quotaUser?: string;
3650
- /** Upload protocol for media (e.g. "raw", "multipart"). */
3881
+ /**
3882
+ * Optional. The resource name that owns the logs: projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]
3883
+ * organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]
3884
+ * billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]
3885
+ * folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]To support legacy queries, it could also be: projects/[PROJECT_ID] organizations/[ORGANIZATION_ID]
3886
+ * billingAccounts/[BILLING_ACCOUNT_ID] folders/[FOLDER_ID]
3887
+ */
3888
+ resourceNames?: string | string[];
3889
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3890
+ upload_protocol?: string;
3891
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3892
+ uploadType?: string;
3893
+ }): Request<ListLogsResponse>;
3894
+ }
3895
+ interface ViewsResource {
3896
+ /** Creates a view over log entries in a log bucket. A bucket may contain a maximum of 30 views. */
3897
+ create(request: {
3898
+ /** V1 error format. */
3899
+ "$.xgafv"?: string;
3900
+ /** OAuth access token. */
3901
+ access_token?: string;
3902
+ /** Data format for response. */
3903
+ alt?: string;
3904
+ /** JSONP */
3905
+ callback?: string;
3906
+ /** Selector specifying which fields to include in a partial response. */
3907
+ fields?: string;
3908
+ /** 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. */
3909
+ key?: string;
3910
+ /** OAuth 2.0 token for the current user. */
3911
+ oauth_token?: string;
3912
+ /**
3913
+ * Required. The bucket in which to create the view `"projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"` For
3914
+ * example:"projects/my-project/locations/global/buckets/my-bucket"
3915
+ */
3916
+ parent: string;
3917
+ /** Returns response with indentations and line breaks. */
3918
+ prettyPrint?: boolean;
3919
+ /** 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. */
3920
+ quotaUser?: string;
3921
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3922
+ upload_protocol?: string;
3923
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3924
+ uploadType?: string;
3925
+ /** Required. A client-assigned identifier such as "my-view". Identifiers are limited to 100 characters and can include only letters, digits, underscores, hyphens, and periods. */
3926
+ viewId?: string;
3927
+ /** Request body */
3928
+ resource: LogView;
3929
+ }): Request<LogView>;
3930
+ create(request: {
3931
+ /** V1 error format. */
3932
+ "$.xgafv"?: string;
3933
+ /** OAuth access token. */
3934
+ access_token?: string;
3935
+ /** Data format for response. */
3936
+ alt?: string;
3937
+ /** JSONP */
3938
+ callback?: string;
3939
+ /** Selector specifying which fields to include in a partial response. */
3940
+ fields?: string;
3941
+ /** 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. */
3942
+ key?: string;
3943
+ /** OAuth 2.0 token for the current user. */
3944
+ oauth_token?: string;
3945
+ /**
3946
+ * Required. The bucket in which to create the view `"projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"` For
3947
+ * example:"projects/my-project/locations/global/buckets/my-bucket"
3948
+ */
3949
+ parent: string;
3950
+ /** Returns response with indentations and line breaks. */
3951
+ prettyPrint?: boolean;
3952
+ /** 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. */
3953
+ quotaUser?: string;
3954
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3955
+ upload_protocol?: string;
3956
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3957
+ uploadType?: string;
3958
+ /** Required. A client-assigned identifier such as "my-view". Identifiers are limited to 100 characters and can include only letters, digits, underscores, hyphens, and periods. */
3959
+ viewId?: string;
3960
+ },
3961
+ body: LogView): Request<LogView>;
3962
+ /**
3963
+ * Deletes a view on a log bucket. If an UNAVAILABLE error is returned, this indicates that system is not in a state where it can delete the view. If this occurs, please try again in a
3964
+ * few minutes.
3965
+ */
3966
+ delete(request?: {
3967
+ /** V1 error format. */
3968
+ "$.xgafv"?: string;
3969
+ /** OAuth access token. */
3970
+ access_token?: string;
3971
+ /** Data format for response. */
3972
+ alt?: string;
3973
+ /** JSONP */
3974
+ callback?: string;
3975
+ /** Selector specifying which fields to include in a partial response. */
3976
+ fields?: string;
3977
+ /** 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. */
3978
+ key?: string;
3979
+ /**
3980
+ * Required. The full resource name of the view to delete: "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]" For
3981
+ * example:"projects/my-project/locations/global/buckets/my-bucket/views/my-view"
3982
+ */
3983
+ name: string;
3984
+ /** OAuth 2.0 token for the current user. */
3985
+ oauth_token?: string;
3986
+ /** Returns response with indentations and line breaks. */
3987
+ prettyPrint?: boolean;
3988
+ /** 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. */
3989
+ quotaUser?: string;
3990
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3991
+ upload_protocol?: string;
3992
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3993
+ uploadType?: string;
3994
+ }): Request<{}>;
3995
+ /** Gets a view on a log bucket.. */
3996
+ get(request?: {
3997
+ /** V1 error format. */
3998
+ "$.xgafv"?: string;
3999
+ /** OAuth access token. */
4000
+ access_token?: string;
4001
+ /** Data format for response. */
4002
+ alt?: string;
4003
+ /** JSONP */
4004
+ callback?: string;
4005
+ /** Selector specifying which fields to include in a partial response. */
4006
+ fields?: string;
4007
+ /** 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. */
4008
+ key?: string;
4009
+ /**
4010
+ * Required. The resource name of the policy: "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]" For
4011
+ * example:"projects/my-project/locations/global/buckets/my-bucket/views/my-view"
4012
+ */
4013
+ name: string;
4014
+ /** OAuth 2.0 token for the current user. */
4015
+ oauth_token?: string;
4016
+ /** Returns response with indentations and line breaks. */
4017
+ prettyPrint?: boolean;
4018
+ /** 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. */
4019
+ quotaUser?: string;
4020
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
4021
+ upload_protocol?: string;
4022
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
4023
+ uploadType?: string;
4024
+ }): Request<LogView>;
4025
+ /** Lists views on a log bucket. */
4026
+ list(request?: {
4027
+ /** V1 error format. */
4028
+ "$.xgafv"?: string;
4029
+ /** OAuth access token. */
4030
+ access_token?: string;
4031
+ /** Data format for response. */
4032
+ alt?: string;
4033
+ /** JSONP */
4034
+ callback?: string;
4035
+ /** Selector specifying which fields to include in a partial response. */
4036
+ fields?: string;
4037
+ /** 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. */
4038
+ key?: string;
4039
+ /** OAuth 2.0 token for the current user. */
4040
+ oauth_token?: string;
4041
+ /**
4042
+ * Optional. The maximum number of results to return from this request.Non-positive values are ignored. The presence of nextPageToken in the response indicates that more results
4043
+ * might be available.
4044
+ */
4045
+ pageSize?: number;
4046
+ /**
4047
+ * Optional. If present, then retrieve the next batch of results from the preceding call to this method. pageToken must be the value of nextPageToken from the previous response.
4048
+ * The values of other method parameters should be identical to those in the previous call.
4049
+ */
4050
+ pageToken?: string;
4051
+ /** Required. The bucket whose views are to be listed: "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" */
4052
+ parent: string;
4053
+ /** Returns response with indentations and line breaks. */
4054
+ prettyPrint?: boolean;
4055
+ /** 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. */
4056
+ quotaUser?: string;
4057
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3651
4058
  upload_protocol?: string;
3652
4059
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3653
4060
  uploadType?: string;
@@ -4180,6 +4587,7 @@ declare namespace gapi.client {
4180
4587
  uploadType?: string;
4181
4588
  },
4182
4589
  body: LogBucket): Request<Operation>;
4590
+ links: LinksResource;
4183
4591
  views: ViewsResource;
4184
4592
  }
4185
4593
  interface OperationsResource {
@@ -4985,6 +5393,173 @@ declare namespace gapi.client {
4985
5393
  logs: LogsResource;
4986
5394
  sinks: SinksResource;
4987
5395
  }
5396
+ interface LinksResource {
5397
+ /** Asynchronously creates linked dataset in BigQuery which makes it possible to use BugQuery to read the logs stored in the bucket. A bucket may currently only contain one link. */
5398
+ create(request: {
5399
+ /** V1 error format. */
5400
+ "$.xgafv"?: string;
5401
+ /** OAuth access token. */
5402
+ access_token?: string;
5403
+ /** Data format for response. */
5404
+ alt?: string;
5405
+ /** JSONP */
5406
+ callback?: string;
5407
+ /** Selector specifying which fields to include in a partial response. */
5408
+ fields?: string;
5409
+ /** 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. */
5410
+ key?: string;
5411
+ /** Required. The ID to use for the link. The link_id can have up to 100 characters. A valid link_id must only have alphanumeric characters and underscores within it. */
5412
+ linkId?: string;
5413
+ /** OAuth 2.0 token for the current user. */
5414
+ oauth_token?: string;
5415
+ /**
5416
+ * Required. The full resource name of the bucket to create a link for. "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
5417
+ * "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
5418
+ * "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
5419
+ */
5420
+ parent: string;
5421
+ /** Returns response with indentations and line breaks. */
5422
+ prettyPrint?: boolean;
5423
+ /** 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. */
5424
+ quotaUser?: string;
5425
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
5426
+ upload_protocol?: string;
5427
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
5428
+ uploadType?: string;
5429
+ /** Request body */
5430
+ resource: Link;
5431
+ }): Request<Operation>;
5432
+ create(request: {
5433
+ /** V1 error format. */
5434
+ "$.xgafv"?: string;
5435
+ /** OAuth access token. */
5436
+ access_token?: string;
5437
+ /** Data format for response. */
5438
+ alt?: string;
5439
+ /** JSONP */
5440
+ callback?: string;
5441
+ /** Selector specifying which fields to include in a partial response. */
5442
+ fields?: string;
5443
+ /** 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. */
5444
+ key?: string;
5445
+ /** Required. The ID to use for the link. The link_id can have up to 100 characters. A valid link_id must only have alphanumeric characters and underscores within it. */
5446
+ linkId?: string;
5447
+ /** OAuth 2.0 token for the current user. */
5448
+ oauth_token?: string;
5449
+ /**
5450
+ * Required. The full resource name of the bucket to create a link for. "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
5451
+ * "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
5452
+ * "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
5453
+ */
5454
+ parent: string;
5455
+ /** Returns response with indentations and line breaks. */
5456
+ prettyPrint?: boolean;
5457
+ /** 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. */
5458
+ quotaUser?: string;
5459
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
5460
+ upload_protocol?: string;
5461
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
5462
+ uploadType?: string;
5463
+ },
5464
+ body: Link): Request<Operation>;
5465
+ /** Deletes a link. This will also delete the corresponding BigQuery linked dataset. */
5466
+ delete(request?: {
5467
+ /** V1 error format. */
5468
+ "$.xgafv"?: string;
5469
+ /** OAuth access token. */
5470
+ access_token?: string;
5471
+ /** Data format for response. */
5472
+ alt?: string;
5473
+ /** JSONP */
5474
+ callback?: string;
5475
+ /** Selector specifying which fields to include in a partial response. */
5476
+ fields?: string;
5477
+ /** 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. */
5478
+ key?: string;
5479
+ /**
5480
+ * Required. The full resource name of the link to delete."projects/PROJECT_ID/locations/LOCATION_ID/buckets/BUCKET_ID/links/LINK_ID"
5481
+ * "organizations/ORGANIZATION_ID/locations/LOCATION_ID/buckets/BUCKET_ID/links/LINK_ID" "billingAccounts/BILLING_ACCOUNT_ID/locations/LOCATION_ID/buckets/BUCKET_ID/links/LINK_ID"
5482
+ * "folders/FOLDER_ID/locations/LOCATION_ID/buckets/BUCKET_ID/links/LINK_ID"
5483
+ */
5484
+ name: string;
5485
+ /** OAuth 2.0 token for the current user. */
5486
+ oauth_token?: string;
5487
+ /** Returns response with indentations and line breaks. */
5488
+ prettyPrint?: boolean;
5489
+ /** 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. */
5490
+ quotaUser?: string;
5491
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
5492
+ upload_protocol?: string;
5493
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
5494
+ uploadType?: string;
5495
+ }): Request<Operation>;
5496
+ /** Gets a link. */
5497
+ get(request?: {
5498
+ /** V1 error format. */
5499
+ "$.xgafv"?: string;
5500
+ /** OAuth access token. */
5501
+ access_token?: string;
5502
+ /** Data format for response. */
5503
+ alt?: string;
5504
+ /** JSONP */
5505
+ callback?: string;
5506
+ /** Selector specifying which fields to include in a partial response. */
5507
+ fields?: string;
5508
+ /** 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. */
5509
+ key?: string;
5510
+ /**
5511
+ * Required. The resource name of the link:"projects/PROJECT_ID/locations/LOCATION_ID/buckets/BUCKET_ID/links/LINK_ID"
5512
+ * "organizations/ORGANIZATION_ID/locations/LOCATION_ID/buckets/BUCKET_ID/links/LINK_ID" "billingAccounts/BILLING_ACCOUNT_ID/locations/LOCATION_ID/buckets/BUCKET_ID/links/LINK_ID"
5513
+ * "folders/FOLDER_ID/locations/LOCATION_ID/buckets/BUCKET_ID/links/LINK_ID
5514
+ */
5515
+ name: string;
5516
+ /** OAuth 2.0 token for the current user. */
5517
+ oauth_token?: string;
5518
+ /** Returns response with indentations and line breaks. */
5519
+ prettyPrint?: boolean;
5520
+ /** 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. */
5521
+ quotaUser?: string;
5522
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
5523
+ upload_protocol?: string;
5524
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
5525
+ uploadType?: string;
5526
+ }): Request<Link>;
5527
+ /** Lists links. */
5528
+ list(request?: {
5529
+ /** V1 error format. */
5530
+ "$.xgafv"?: string;
5531
+ /** OAuth access token. */
5532
+ access_token?: string;
5533
+ /** Data format for response. */
5534
+ alt?: string;
5535
+ /** JSONP */
5536
+ callback?: string;
5537
+ /** Selector specifying which fields to include in a partial response. */
5538
+ fields?: string;
5539
+ /** 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. */
5540
+ key?: string;
5541
+ /** OAuth 2.0 token for the current user. */
5542
+ oauth_token?: string;
5543
+ /** Optional. The maximum number of results to return from this request. */
5544
+ pageSize?: number;
5545
+ /** Optional. If present, then retrieve the next batch of results from the preceding call to this method. pageToken must be the value of nextPageToken from the previous response. */
5546
+ pageToken?: string;
5547
+ /**
5548
+ * Required. The parent resource whose links are to be listed:"projects/PROJECT_ID/locations/LOCATION_ID/buckets/BUCKET_ID/links/"
5549
+ * "organizations/ORGANIZATION_ID/locations/LOCATION_ID/buckets/BUCKET_ID/" "billingAccounts/BILLING_ACCOUNT_ID/locations/LOCATION_ID/buckets/BUCKET_ID/"
5550
+ * "folders/FOLDER_ID/locations/LOCATION_ID/buckets/BUCKET_ID/
5551
+ */
5552
+ parent: string;
5553
+ /** Returns response with indentations and line breaks. */
5554
+ prettyPrint?: boolean;
5555
+ /** 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. */
5556
+ quotaUser?: string;
5557
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
5558
+ upload_protocol?: string;
5559
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
5560
+ uploadType?: string;
5561
+ }): Request<ListLinksResponse>;
5562
+ }
4988
5563
  interface ViewsResource {
4989
5564
  /** Creates a view over log entries in a log bucket. A bucket may contain a maximum of 30 views. */
4990
5565
  create(request: {
@@ -5679,6 +6254,7 @@ declare namespace gapi.client {
5679
6254
  uploadType?: string;
5680
6255
  },
5681
6256
  body: LogBucket): Request<Operation>;
6257
+ links: LinksResource;
5682
6258
  views: ViewsResource;
5683
6259
  }
5684
6260
  interface OperationsResource {
@@ -6014,15 +6590,183 @@ declare namespace gapi.client {
6014
6590
  key?: string;
6015
6591
  /** OAuth 2.0 token for the current user. */
6016
6592
  oauth_token?: string;
6017
- /**
6018
- * Required. The parent resource in which to create the exclusion: "projects/[PROJECT_ID]" "organizations/[ORGANIZATION_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]"
6019
- * "folders/[FOLDER_ID]" For examples:"projects/my-logging-project" "organizations/123456789"
6020
- */
6021
- parent: string;
6593
+ /**
6594
+ * Required. The parent resource in which to create the exclusion: "projects/[PROJECT_ID]" "organizations/[ORGANIZATION_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]"
6595
+ * "folders/[FOLDER_ID]" For examples:"projects/my-logging-project" "organizations/123456789"
6596
+ */
6597
+ parent: string;
6598
+ /** Returns response with indentations and line breaks. */
6599
+ prettyPrint?: boolean;
6600
+ /** 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. */
6601
+ quotaUser?: string;
6602
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
6603
+ upload_protocol?: string;
6604
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
6605
+ uploadType?: string;
6606
+ /** Request body */
6607
+ resource: LogExclusion;
6608
+ }): Request<LogExclusion>;
6609
+ create(request: {
6610
+ /** V1 error format. */
6611
+ "$.xgafv"?: string;
6612
+ /** OAuth access token. */
6613
+ access_token?: string;
6614
+ /** Data format for response. */
6615
+ alt?: string;
6616
+ /** JSONP */
6617
+ callback?: string;
6618
+ /** Selector specifying which fields to include in a partial response. */
6619
+ fields?: string;
6620
+ /** 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. */
6621
+ key?: string;
6622
+ /** OAuth 2.0 token for the current user. */
6623
+ oauth_token?: string;
6624
+ /**
6625
+ * Required. The parent resource in which to create the exclusion: "projects/[PROJECT_ID]" "organizations/[ORGANIZATION_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]"
6626
+ * "folders/[FOLDER_ID]" For examples:"projects/my-logging-project" "organizations/123456789"
6627
+ */
6628
+ parent: string;
6629
+ /** Returns response with indentations and line breaks. */
6630
+ prettyPrint?: boolean;
6631
+ /** 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. */
6632
+ quotaUser?: string;
6633
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
6634
+ upload_protocol?: string;
6635
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
6636
+ uploadType?: string;
6637
+ },
6638
+ body: LogExclusion): Request<LogExclusion>;
6639
+ /** Deletes an exclusion in the _Default sink. */
6640
+ delete(request?: {
6641
+ /** V1 error format. */
6642
+ "$.xgafv"?: string;
6643
+ /** OAuth access token. */
6644
+ access_token?: string;
6645
+ /** Data format for response. */
6646
+ alt?: string;
6647
+ /** JSONP */
6648
+ callback?: string;
6649
+ /** Selector specifying which fields to include in a partial response. */
6650
+ fields?: string;
6651
+ /** 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. */
6652
+ key?: string;
6653
+ /**
6654
+ * Required. The resource name of an existing exclusion to delete: "projects/[PROJECT_ID]/exclusions/[EXCLUSION_ID]" "organizations/[ORGANIZATION_ID]/exclusions/[EXCLUSION_ID]"
6655
+ * "billingAccounts/[BILLING_ACCOUNT_ID]/exclusions/[EXCLUSION_ID]" "folders/[FOLDER_ID]/exclusions/[EXCLUSION_ID]" For example:"projects/my-project/exclusions/my-exclusion"
6656
+ */
6657
+ name: string;
6658
+ /** OAuth 2.0 token for the current user. */
6659
+ oauth_token?: string;
6660
+ /** Returns response with indentations and line breaks. */
6661
+ prettyPrint?: boolean;
6662
+ /** 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. */
6663
+ quotaUser?: string;
6664
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
6665
+ upload_protocol?: string;
6666
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
6667
+ uploadType?: string;
6668
+ }): Request<{}>;
6669
+ /** Gets the description of an exclusion in the _Default sink. */
6670
+ get(request?: {
6671
+ /** V1 error format. */
6672
+ "$.xgafv"?: string;
6673
+ /** OAuth access token. */
6674
+ access_token?: string;
6675
+ /** Data format for response. */
6676
+ alt?: string;
6677
+ /** JSONP */
6678
+ callback?: string;
6679
+ /** Selector specifying which fields to include in a partial response. */
6680
+ fields?: string;
6681
+ /** 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. */
6682
+ key?: string;
6683
+ /**
6684
+ * Required. The resource name of an existing exclusion: "projects/[PROJECT_ID]/exclusions/[EXCLUSION_ID]" "organizations/[ORGANIZATION_ID]/exclusions/[EXCLUSION_ID]"
6685
+ * "billingAccounts/[BILLING_ACCOUNT_ID]/exclusions/[EXCLUSION_ID]" "folders/[FOLDER_ID]/exclusions/[EXCLUSION_ID]" For example:"projects/my-project/exclusions/my-exclusion"
6686
+ */
6687
+ name: string;
6688
+ /** OAuth 2.0 token for the current user. */
6689
+ oauth_token?: string;
6690
+ /** Returns response with indentations and line breaks. */
6691
+ prettyPrint?: boolean;
6692
+ /** 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. */
6693
+ quotaUser?: string;
6694
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
6695
+ upload_protocol?: string;
6696
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
6697
+ uploadType?: string;
6698
+ }): Request<LogExclusion>;
6699
+ /** Lists all the exclusions on the _Default sink in a parent resource. */
6700
+ list(request?: {
6701
+ /** V1 error format. */
6702
+ "$.xgafv"?: string;
6703
+ /** OAuth access token. */
6704
+ access_token?: string;
6705
+ /** Data format for response. */
6706
+ alt?: string;
6707
+ /** JSONP */
6708
+ callback?: string;
6709
+ /** Selector specifying which fields to include in a partial response. */
6710
+ fields?: string;
6711
+ /** 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. */
6712
+ key?: string;
6713
+ /** OAuth 2.0 token for the current user. */
6714
+ oauth_token?: string;
6715
+ /**
6716
+ * Optional. The maximum number of results to return from this request. Non-positive values are ignored. The presence of nextPageToken in the response indicates that more results
6717
+ * might be available.
6718
+ */
6719
+ pageSize?: number;
6720
+ /**
6721
+ * Optional. If present, then retrieve the next batch of results from the preceding call to this method. pageToken must be the value of nextPageToken from the previous response.
6722
+ * The values of other method parameters should be identical to those in the previous call.
6723
+ */
6724
+ pageToken?: string;
6725
+ /**
6726
+ * Required. The parent resource whose exclusions are to be listed. "projects/[PROJECT_ID]" "organizations/[ORGANIZATION_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]"
6727
+ * "folders/[FOLDER_ID]"
6728
+ */
6729
+ parent: string;
6730
+ /** Returns response with indentations and line breaks. */
6731
+ prettyPrint?: boolean;
6732
+ /** 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. */
6733
+ quotaUser?: string;
6734
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
6735
+ upload_protocol?: string;
6736
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
6737
+ uploadType?: string;
6738
+ }): Request<ListExclusionsResponse>;
6739
+ /** Changes one or more properties of an existing exclusion in the _Default sink. */
6740
+ patch(request: {
6741
+ /** V1 error format. */
6742
+ "$.xgafv"?: string;
6743
+ /** OAuth access token. */
6744
+ access_token?: string;
6745
+ /** Data format for response. */
6746
+ alt?: string;
6747
+ /** JSONP */
6748
+ callback?: string;
6749
+ /** Selector specifying which fields to include in a partial response. */
6750
+ fields?: string;
6751
+ /** 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. */
6752
+ key?: string;
6753
+ /**
6754
+ * Required. The resource name of the exclusion to update: "projects/[PROJECT_ID]/exclusions/[EXCLUSION_ID]" "organizations/[ORGANIZATION_ID]/exclusions/[EXCLUSION_ID]"
6755
+ * "billingAccounts/[BILLING_ACCOUNT_ID]/exclusions/[EXCLUSION_ID]" "folders/[FOLDER_ID]/exclusions/[EXCLUSION_ID]" For example:"projects/my-project/exclusions/my-exclusion"
6756
+ */
6757
+ name: string;
6758
+ /** OAuth 2.0 token for the current user. */
6759
+ oauth_token?: string;
6022
6760
  /** Returns response with indentations and line breaks. */
6023
6761
  prettyPrint?: boolean;
6024
6762
  /** 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. */
6025
6763
  quotaUser?: string;
6764
+ /**
6765
+ * Required. A non-empty list of fields to change in the existing exclusion. New values for the fields are taken from the corresponding fields in the LogExclusion included in this
6766
+ * request. Fields not mentioned in update_mask are not changed and are ignored in the request.For example, to change the filter and description of an exclusion, specify an
6767
+ * update_mask of "filter,description".
6768
+ */
6769
+ updateMask?: string;
6026
6770
  /** Upload protocol for media (e.g. "raw", "multipart"). */
6027
6771
  upload_protocol?: string;
6028
6772
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
@@ -6030,7 +6774,7 @@ declare namespace gapi.client {
6030
6774
  /** Request body */
6031
6775
  resource: LogExclusion;
6032
6776
  }): Request<LogExclusion>;
6033
- create(request: {
6777
+ patch(request: {
6034
6778
  /** V1 error format. */
6035
6779
  "$.xgafv"?: string;
6036
6780
  /** OAuth access token. */
@@ -6043,25 +6787,33 @@ declare namespace gapi.client {
6043
6787
  fields?: string;
6044
6788
  /** 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. */
6045
6789
  key?: string;
6046
- /** OAuth 2.0 token for the current user. */
6047
- oauth_token?: string;
6048
6790
  /**
6049
- * Required. The parent resource in which to create the exclusion: "projects/[PROJECT_ID]" "organizations/[ORGANIZATION_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]"
6050
- * "folders/[FOLDER_ID]" For examples:"projects/my-logging-project" "organizations/123456789"
6791
+ * Required. The resource name of the exclusion to update: "projects/[PROJECT_ID]/exclusions/[EXCLUSION_ID]" "organizations/[ORGANIZATION_ID]/exclusions/[EXCLUSION_ID]"
6792
+ * "billingAccounts/[BILLING_ACCOUNT_ID]/exclusions/[EXCLUSION_ID]" "folders/[FOLDER_ID]/exclusions/[EXCLUSION_ID]" For example:"projects/my-project/exclusions/my-exclusion"
6051
6793
  */
6052
- parent: string;
6794
+ name: string;
6795
+ /** OAuth 2.0 token for the current user. */
6796
+ oauth_token?: string;
6053
6797
  /** Returns response with indentations and line breaks. */
6054
6798
  prettyPrint?: boolean;
6055
6799
  /** 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. */
6056
6800
  quotaUser?: string;
6801
+ /**
6802
+ * Required. A non-empty list of fields to change in the existing exclusion. New values for the fields are taken from the corresponding fields in the LogExclusion included in this
6803
+ * request. Fields not mentioned in update_mask are not changed and are ignored in the request.For example, to change the filter and description of an exclusion, specify an
6804
+ * update_mask of "filter,description".
6805
+ */
6806
+ updateMask?: string;
6057
6807
  /** Upload protocol for media (e.g. "raw", "multipart"). */
6058
6808
  upload_protocol?: string;
6059
6809
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
6060
6810
  uploadType?: string;
6061
6811
  },
6062
6812
  body: LogExclusion): Request<LogExclusion>;
6063
- /** Deletes an exclusion in the _Default sink. */
6064
- delete(request?: {
6813
+ }
6814
+ interface LinksResource {
6815
+ /** Asynchronously creates linked dataset in BigQuery which makes it possible to use BugQuery to read the logs stored in the bucket. A bucket may currently only contain one link. */
6816
+ create(request: {
6065
6817
  /** V1 error format. */
6066
6818
  "$.xgafv"?: string;
6067
6819
  /** OAuth access token. */
@@ -6074,13 +6826,16 @@ declare namespace gapi.client {
6074
6826
  fields?: string;
6075
6827
  /** 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. */
6076
6828
  key?: string;
6077
- /**
6078
- * Required. The resource name of an existing exclusion to delete: "projects/[PROJECT_ID]/exclusions/[EXCLUSION_ID]" "organizations/[ORGANIZATION_ID]/exclusions/[EXCLUSION_ID]"
6079
- * "billingAccounts/[BILLING_ACCOUNT_ID]/exclusions/[EXCLUSION_ID]" "folders/[FOLDER_ID]/exclusions/[EXCLUSION_ID]" For example:"projects/my-project/exclusions/my-exclusion"
6080
- */
6081
- name: string;
6829
+ /** Required. The ID to use for the link. The link_id can have up to 100 characters. A valid link_id must only have alphanumeric characters and underscores within it. */
6830
+ linkId?: string;
6082
6831
  /** OAuth 2.0 token for the current user. */
6083
6832
  oauth_token?: string;
6833
+ /**
6834
+ * Required. The full resource name of the bucket to create a link for. "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
6835
+ * "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
6836
+ * "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
6837
+ */
6838
+ parent: string;
6084
6839
  /** Returns response with indentations and line breaks. */
6085
6840
  prettyPrint?: boolean;
6086
6841
  /** 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. */
@@ -6089,9 +6844,10 @@ declare namespace gapi.client {
6089
6844
  upload_protocol?: string;
6090
6845
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
6091
6846
  uploadType?: string;
6092
- }): Request<{}>;
6093
- /** Gets the description of an exclusion in the _Default sink. */
6094
- get(request?: {
6847
+ /** Request body */
6848
+ resource: Link;
6849
+ }): Request<Operation>;
6850
+ create(request: {
6095
6851
  /** V1 error format. */
6096
6852
  "$.xgafv"?: string;
6097
6853
  /** OAuth access token. */
@@ -6104,13 +6860,16 @@ declare namespace gapi.client {
6104
6860
  fields?: string;
6105
6861
  /** 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. */
6106
6862
  key?: string;
6107
- /**
6108
- * Required. The resource name of an existing exclusion: "projects/[PROJECT_ID]/exclusions/[EXCLUSION_ID]" "organizations/[ORGANIZATION_ID]/exclusions/[EXCLUSION_ID]"
6109
- * "billingAccounts/[BILLING_ACCOUNT_ID]/exclusions/[EXCLUSION_ID]" "folders/[FOLDER_ID]/exclusions/[EXCLUSION_ID]" For example:"projects/my-project/exclusions/my-exclusion"
6110
- */
6111
- name: string;
6863
+ /** Required. The ID to use for the link. The link_id can have up to 100 characters. A valid link_id must only have alphanumeric characters and underscores within it. */
6864
+ linkId?: string;
6112
6865
  /** OAuth 2.0 token for the current user. */
6113
6866
  oauth_token?: string;
6867
+ /**
6868
+ * Required. The full resource name of the bucket to create a link for. "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
6869
+ * "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
6870
+ * "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
6871
+ */
6872
+ parent: string;
6114
6873
  /** Returns response with indentations and line breaks. */
6115
6874
  prettyPrint?: boolean;
6116
6875
  /** 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. */
@@ -6119,9 +6878,10 @@ declare namespace gapi.client {
6119
6878
  upload_protocol?: string;
6120
6879
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
6121
6880
  uploadType?: string;
6122
- }): Request<LogExclusion>;
6123
- /** Lists all the exclusions on the _Default sink in a parent resource. */
6124
- list(request?: {
6881
+ },
6882
+ body: Link): Request<Operation>;
6883
+ /** Deletes a link. This will also delete the corresponding BigQuery linked dataset. */
6884
+ delete(request?: {
6125
6885
  /** V1 error format. */
6126
6886
  "$.xgafv"?: string;
6127
6887
  /** OAuth access token. */
@@ -6134,23 +6894,14 @@ declare namespace gapi.client {
6134
6894
  fields?: string;
6135
6895
  /** 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. */
6136
6896
  key?: string;
6137
- /** OAuth 2.0 token for the current user. */
6138
- oauth_token?: string;
6139
- /**
6140
- * Optional. The maximum number of results to return from this request. Non-positive values are ignored. The presence of nextPageToken in the response indicates that more results
6141
- * might be available.
6142
- */
6143
- pageSize?: number;
6144
- /**
6145
- * Optional. If present, then retrieve the next batch of results from the preceding call to this method. pageToken must be the value of nextPageToken from the previous response.
6146
- * The values of other method parameters should be identical to those in the previous call.
6147
- */
6148
- pageToken?: string;
6149
6897
  /**
6150
- * Required. The parent resource whose exclusions are to be listed. "projects/[PROJECT_ID]" "organizations/[ORGANIZATION_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]"
6151
- * "folders/[FOLDER_ID]"
6898
+ * Required. The full resource name of the link to delete."projects/PROJECT_ID/locations/LOCATION_ID/buckets/BUCKET_ID/links/LINK_ID"
6899
+ * "organizations/ORGANIZATION_ID/locations/LOCATION_ID/buckets/BUCKET_ID/links/LINK_ID" "billingAccounts/BILLING_ACCOUNT_ID/locations/LOCATION_ID/buckets/BUCKET_ID/links/LINK_ID"
6900
+ * "folders/FOLDER_ID/locations/LOCATION_ID/buckets/BUCKET_ID/links/LINK_ID"
6152
6901
  */
6153
- parent: string;
6902
+ name: string;
6903
+ /** OAuth 2.0 token for the current user. */
6904
+ oauth_token?: string;
6154
6905
  /** Returns response with indentations and line breaks. */
6155
6906
  prettyPrint?: boolean;
6156
6907
  /** 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. */
@@ -6159,9 +6910,9 @@ declare namespace gapi.client {
6159
6910
  upload_protocol?: string;
6160
6911
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
6161
6912
  uploadType?: string;
6162
- }): Request<ListExclusionsResponse>;
6163
- /** Changes one or more properties of an existing exclusion in the _Default sink. */
6164
- patch(request: {
6913
+ }): Request<Operation>;
6914
+ /** Gets a link. */
6915
+ get(request?: {
6165
6916
  /** V1 error format. */
6166
6917
  "$.xgafv"?: string;
6167
6918
  /** OAuth access token. */
@@ -6175,8 +6926,9 @@ declare namespace gapi.client {
6175
6926
  /** 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. */
6176
6927
  key?: string;
6177
6928
  /**
6178
- * Required. The resource name of the exclusion to update: "projects/[PROJECT_ID]/exclusions/[EXCLUSION_ID]" "organizations/[ORGANIZATION_ID]/exclusions/[EXCLUSION_ID]"
6179
- * "billingAccounts/[BILLING_ACCOUNT_ID]/exclusions/[EXCLUSION_ID]" "folders/[FOLDER_ID]/exclusions/[EXCLUSION_ID]" For example:"projects/my-project/exclusions/my-exclusion"
6929
+ * Required. The resource name of the link:"projects/PROJECT_ID/locations/LOCATION_ID/buckets/BUCKET_ID/links/LINK_ID"
6930
+ * "organizations/ORGANIZATION_ID/locations/LOCATION_ID/buckets/BUCKET_ID/links/LINK_ID" "billingAccounts/BILLING_ACCOUNT_ID/locations/LOCATION_ID/buckets/BUCKET_ID/links/LINK_ID"
6931
+ * "folders/FOLDER_ID/locations/LOCATION_ID/buckets/BUCKET_ID/links/LINK_ID
6180
6932
  */
6181
6933
  name: string;
6182
6934
  /** OAuth 2.0 token for the current user. */
@@ -6185,20 +6937,13 @@ declare namespace gapi.client {
6185
6937
  prettyPrint?: boolean;
6186
6938
  /** 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. */
6187
6939
  quotaUser?: string;
6188
- /**
6189
- * Required. A non-empty list of fields to change in the existing exclusion. New values for the fields are taken from the corresponding fields in the LogExclusion included in this
6190
- * request. Fields not mentioned in update_mask are not changed and are ignored in the request.For example, to change the filter and description of an exclusion, specify an
6191
- * update_mask of "filter,description".
6192
- */
6193
- updateMask?: string;
6194
6940
  /** Upload protocol for media (e.g. "raw", "multipart"). */
6195
6941
  upload_protocol?: string;
6196
6942
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
6197
6943
  uploadType?: string;
6198
- /** Request body */
6199
- resource: LogExclusion;
6200
- }): Request<LogExclusion>;
6201
- patch(request: {
6944
+ }): Request<Link>;
6945
+ /** Lists links. */
6946
+ list(request?: {
6202
6947
  /** V1 error format. */
6203
6948
  "$.xgafv"?: string;
6204
6949
  /** OAuth access token. */
@@ -6211,29 +6956,27 @@ declare namespace gapi.client {
6211
6956
  fields?: string;
6212
6957
  /** 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. */
6213
6958
  key?: string;
6214
- /**
6215
- * Required. The resource name of the exclusion to update: "projects/[PROJECT_ID]/exclusions/[EXCLUSION_ID]" "organizations/[ORGANIZATION_ID]/exclusions/[EXCLUSION_ID]"
6216
- * "billingAccounts/[BILLING_ACCOUNT_ID]/exclusions/[EXCLUSION_ID]" "folders/[FOLDER_ID]/exclusions/[EXCLUSION_ID]" For example:"projects/my-project/exclusions/my-exclusion"
6217
- */
6218
- name: string;
6219
6959
  /** OAuth 2.0 token for the current user. */
6220
6960
  oauth_token?: string;
6961
+ /** Optional. The maximum number of results to return from this request. */
6962
+ pageSize?: number;
6963
+ /** Optional. If present, then retrieve the next batch of results from the preceding call to this method. pageToken must be the value of nextPageToken from the previous response. */
6964
+ pageToken?: string;
6965
+ /**
6966
+ * Required. The parent resource whose links are to be listed:"projects/PROJECT_ID/locations/LOCATION_ID/buckets/BUCKET_ID/links/"
6967
+ * "organizations/ORGANIZATION_ID/locations/LOCATION_ID/buckets/BUCKET_ID/" "billingAccounts/BILLING_ACCOUNT_ID/locations/LOCATION_ID/buckets/BUCKET_ID/"
6968
+ * "folders/FOLDER_ID/locations/LOCATION_ID/buckets/BUCKET_ID/
6969
+ */
6970
+ parent: string;
6221
6971
  /** Returns response with indentations and line breaks. */
6222
6972
  prettyPrint?: boolean;
6223
6973
  /** 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. */
6224
6974
  quotaUser?: string;
6225
- /**
6226
- * Required. A non-empty list of fields to change in the existing exclusion. New values for the fields are taken from the corresponding fields in the LogExclusion included in this
6227
- * request. Fields not mentioned in update_mask are not changed and are ignored in the request.For example, to change the filter and description of an exclusion, specify an
6228
- * update_mask of "filter,description".
6229
- */
6230
- updateMask?: string;
6231
6975
  /** Upload protocol for media (e.g. "raw", "multipart"). */
6232
6976
  upload_protocol?: string;
6233
6977
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
6234
6978
  uploadType?: string;
6235
- },
6236
- body: LogExclusion): Request<LogExclusion>;
6979
+ }): Request<ListLinksResponse>;
6237
6980
  }
6238
6981
  interface LogsResource {
6239
6982
  /** Lists the logs in projects, organizations, folders, or billing accounts. Only logs that have entries are listed. */
@@ -6977,6 +7720,7 @@ declare namespace gapi.client {
6977
7720
  uploadType?: string;
6978
7721
  },
6979
7722
  body: LogBucket): Request<Operation>;
7723
+ links: LinksResource;
6980
7724
  views: ViewsResource;
6981
7725
  }
6982
7726
  interface OperationsResource {
@@ -8102,6 +8846,173 @@ declare namespace gapi.client {
8102
8846
  },
8103
8847
  body: LogExclusion): Request<LogExclusion>;
8104
8848
  }
8849
+ interface LinksResource {
8850
+ /** Asynchronously creates linked dataset in BigQuery which makes it possible to use BugQuery to read the logs stored in the bucket. A bucket may currently only contain one link. */
8851
+ create(request: {
8852
+ /** V1 error format. */
8853
+ "$.xgafv"?: string;
8854
+ /** OAuth access token. */
8855
+ access_token?: string;
8856
+ /** Data format for response. */
8857
+ alt?: string;
8858
+ /** JSONP */
8859
+ callback?: string;
8860
+ /** Selector specifying which fields to include in a partial response. */
8861
+ fields?: string;
8862
+ /** 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. */
8863
+ key?: string;
8864
+ /** Required. The ID to use for the link. The link_id can have up to 100 characters. A valid link_id must only have alphanumeric characters and underscores within it. */
8865
+ linkId?: string;
8866
+ /** OAuth 2.0 token for the current user. */
8867
+ oauth_token?: string;
8868
+ /**
8869
+ * Required. The full resource name of the bucket to create a link for. "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
8870
+ * "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
8871
+ * "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
8872
+ */
8873
+ parent: string;
8874
+ /** Returns response with indentations and line breaks. */
8875
+ prettyPrint?: boolean;
8876
+ /** 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. */
8877
+ quotaUser?: string;
8878
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
8879
+ upload_protocol?: string;
8880
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
8881
+ uploadType?: string;
8882
+ /** Request body */
8883
+ resource: Link;
8884
+ }): Request<Operation>;
8885
+ create(request: {
8886
+ /** V1 error format. */
8887
+ "$.xgafv"?: string;
8888
+ /** OAuth access token. */
8889
+ access_token?: string;
8890
+ /** Data format for response. */
8891
+ alt?: string;
8892
+ /** JSONP */
8893
+ callback?: string;
8894
+ /** Selector specifying which fields to include in a partial response. */
8895
+ fields?: string;
8896
+ /** 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. */
8897
+ key?: string;
8898
+ /** Required. The ID to use for the link. The link_id can have up to 100 characters. A valid link_id must only have alphanumeric characters and underscores within it. */
8899
+ linkId?: string;
8900
+ /** OAuth 2.0 token for the current user. */
8901
+ oauth_token?: string;
8902
+ /**
8903
+ * Required. The full resource name of the bucket to create a link for. "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
8904
+ * "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
8905
+ * "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
8906
+ */
8907
+ parent: string;
8908
+ /** Returns response with indentations and line breaks. */
8909
+ prettyPrint?: boolean;
8910
+ /** 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. */
8911
+ quotaUser?: string;
8912
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
8913
+ upload_protocol?: string;
8914
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
8915
+ uploadType?: string;
8916
+ },
8917
+ body: Link): Request<Operation>;
8918
+ /** Deletes a link. This will also delete the corresponding BigQuery linked dataset. */
8919
+ delete(request?: {
8920
+ /** V1 error format. */
8921
+ "$.xgafv"?: string;
8922
+ /** OAuth access token. */
8923
+ access_token?: string;
8924
+ /** Data format for response. */
8925
+ alt?: string;
8926
+ /** JSONP */
8927
+ callback?: string;
8928
+ /** Selector specifying which fields to include in a partial response. */
8929
+ fields?: string;
8930
+ /** 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. */
8931
+ key?: string;
8932
+ /**
8933
+ * Required. The full resource name of the link to delete."projects/PROJECT_ID/locations/LOCATION_ID/buckets/BUCKET_ID/links/LINK_ID"
8934
+ * "organizations/ORGANIZATION_ID/locations/LOCATION_ID/buckets/BUCKET_ID/links/LINK_ID" "billingAccounts/BILLING_ACCOUNT_ID/locations/LOCATION_ID/buckets/BUCKET_ID/links/LINK_ID"
8935
+ * "folders/FOLDER_ID/locations/LOCATION_ID/buckets/BUCKET_ID/links/LINK_ID"
8936
+ */
8937
+ name: string;
8938
+ /** OAuth 2.0 token for the current user. */
8939
+ oauth_token?: string;
8940
+ /** Returns response with indentations and line breaks. */
8941
+ prettyPrint?: boolean;
8942
+ /** 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. */
8943
+ quotaUser?: string;
8944
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
8945
+ upload_protocol?: string;
8946
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
8947
+ uploadType?: string;
8948
+ }): Request<Operation>;
8949
+ /** Gets a link. */
8950
+ get(request?: {
8951
+ /** V1 error format. */
8952
+ "$.xgafv"?: string;
8953
+ /** OAuth access token. */
8954
+ access_token?: string;
8955
+ /** Data format for response. */
8956
+ alt?: string;
8957
+ /** JSONP */
8958
+ callback?: string;
8959
+ /** Selector specifying which fields to include in a partial response. */
8960
+ fields?: string;
8961
+ /** 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. */
8962
+ key?: string;
8963
+ /**
8964
+ * Required. The resource name of the link:"projects/PROJECT_ID/locations/LOCATION_ID/buckets/BUCKET_ID/links/LINK_ID"
8965
+ * "organizations/ORGANIZATION_ID/locations/LOCATION_ID/buckets/BUCKET_ID/links/LINK_ID" "billingAccounts/BILLING_ACCOUNT_ID/locations/LOCATION_ID/buckets/BUCKET_ID/links/LINK_ID"
8966
+ * "folders/FOLDER_ID/locations/LOCATION_ID/buckets/BUCKET_ID/links/LINK_ID
8967
+ */
8968
+ name: string;
8969
+ /** OAuth 2.0 token for the current user. */
8970
+ oauth_token?: string;
8971
+ /** Returns response with indentations and line breaks. */
8972
+ prettyPrint?: boolean;
8973
+ /** 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. */
8974
+ quotaUser?: string;
8975
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
8976
+ upload_protocol?: string;
8977
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
8978
+ uploadType?: string;
8979
+ }): Request<Link>;
8980
+ /** Lists links. */
8981
+ list(request?: {
8982
+ /** V1 error format. */
8983
+ "$.xgafv"?: string;
8984
+ /** OAuth access token. */
8985
+ access_token?: string;
8986
+ /** Data format for response. */
8987
+ alt?: string;
8988
+ /** JSONP */
8989
+ callback?: string;
8990
+ /** Selector specifying which fields to include in a partial response. */
8991
+ fields?: string;
8992
+ /** 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. */
8993
+ key?: string;
8994
+ /** OAuth 2.0 token for the current user. */
8995
+ oauth_token?: string;
8996
+ /** Optional. The maximum number of results to return from this request. */
8997
+ pageSize?: number;
8998
+ /** Optional. If present, then retrieve the next batch of results from the preceding call to this method. pageToken must be the value of nextPageToken from the previous response. */
8999
+ pageToken?: string;
9000
+ /**
9001
+ * Required. The parent resource whose links are to be listed:"projects/PROJECT_ID/locations/LOCATION_ID/buckets/BUCKET_ID/links/"
9002
+ * "organizations/ORGANIZATION_ID/locations/LOCATION_ID/buckets/BUCKET_ID/" "billingAccounts/BILLING_ACCOUNT_ID/locations/LOCATION_ID/buckets/BUCKET_ID/"
9003
+ * "folders/FOLDER_ID/locations/LOCATION_ID/buckets/BUCKET_ID/
9004
+ */
9005
+ parent: string;
9006
+ /** Returns response with indentations and line breaks. */
9007
+ prettyPrint?: boolean;
9008
+ /** 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. */
9009
+ quotaUser?: string;
9010
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
9011
+ upload_protocol?: string;
9012
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
9013
+ uploadType?: string;
9014
+ }): Request<ListLinksResponse>;
9015
+ }
8105
9016
  interface LogsResource {
8106
9017
  /** Lists the logs in projects, organizations, folders, or billing accounts. Only logs that have entries are listed. */
8107
9018
  list(request?: {
@@ -8844,6 +9755,7 @@ declare namespace gapi.client {
8844
9755
  uploadType?: string;
8845
9756
  },
8846
9757
  body: LogBucket): Request<Operation>;
9758
+ links: LinksResource;
8847
9759
  views: ViewsResource;
8848
9760
  }
8849
9761
  interface OperationsResource {