@maxim_mazurok/gapi.client.logging-v2 0.0.20231026 → 0.0.20231110

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 +1340 -153
  2. package/package.json +1 -1
  3. package/tests.ts +203 -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: 20231026
12
+ // Revision: 20231110
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -176,6 +176,21 @@ declare namespace gapi.client {
176
176
  parent?:
177
177
  string;
178
178
  }
179
+ interface DefaultSinkConfig {
180
+ /** Optional. Specifies the set of exclusions to be added to the _Default sink in newly created resource containers. */
181
+ exclusions?:
182
+ LogExclusion[];
183
+ /**
184
+ * Optional. An advanced logs filter (https://cloud.google.com/logging/docs/view/advanced-queries). The only exported log entries are those that are in the resource owning the sink and
185
+ * that match the filter.For example:logName="projects/[PROJECT_ID]/logs/[LOG_ID]" AND severity>=ERRORCannot be empty or unset if mode == OVERWRITE. In order to match all logs, use the
186
+ * following line as the value of filter and do not use exclusions:logName:*
187
+ */
188
+ filter?:
189
+ string;
190
+ /** Required. Determines the behavior to apply to the built-in _Default sink inclusion filter.Exclusions are always appended, as built-in _Default sinks have no exclusions. */
191
+ mode?:
192
+ string;
193
+ }
179
194
  interface DeleteLinkRequest {
180
195
  /**
181
196
  * Required. The full resource name of the link to delete. "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]"
@@ -472,6 +487,44 @@ declare namespace gapi.client {
472
487
  operations?:
473
488
  Operation[];
474
489
  }
490
+ interface ListRecentQueriesResponse {
491
+ /**
492
+ * If there might be more results than appear in this response, then nextPageToken is included. To get the next set of results, call the same method again using the value of
493
+ * nextPageToken as pageToken.
494
+ */
495
+ nextPageToken?:
496
+ string;
497
+ /** A list of recent queries. */
498
+ recentQueries?:
499
+ RecentQuery[];
500
+ /**
501
+ * The unreachable resources. Each resource can be either 1) a saved query if a specific query is unreachable or 2) a location if a specific location is unreachable.
502
+ * "projects/[PROJECT_ID]/locations/[LOCATION_ID]/recentQueries/[QUERY_ID]" "projects/[PROJECT_ID]/locations/[LOCATION_ID]" For
503
+ * example:"projects/my-project/locations/global/recentQueries/12345678" "projects/my-project/locations/global"If there are unreachable resources, the response will first return pages
504
+ * that contain recent queries, and then return pages that contain the unreachable resources.
505
+ */
506
+ unreachable?:
507
+ string[];
508
+ }
509
+ interface ListSavedQueriesResponse {
510
+ /**
511
+ * If there might be more results than appear in this response, then nextPageToken is included. To get the next set of results, call the same method again using the value of
512
+ * nextPageToken as pageToken.
513
+ */
514
+ nextPageToken?:
515
+ string;
516
+ /** A list of saved queries. */
517
+ savedQueries?:
518
+ SavedQuery[];
519
+ /**
520
+ * The unreachable resources. It can be either 1) a saved query if a specific query is unreachable or 2) a location if a specific location is unreachabe.
521
+ * "projects/[PROJECT_ID]/locations/[LOCATION_ID]/savedQueries/[QUERY_ID]" "projects/[PROJECT_ID]/locations/[LOCATION_ID]" For example:
522
+ * "projects/my-project/locations/global/savedQueries/12345678" "projects/my-project/locations/global" If there are unreachable resources, the response will first return pages that
523
+ * contain saved queries, and then return pages that contain the unreachable resources.
524
+ */
525
+ unreachable?:
526
+ string[];
527
+ }
475
528
  interface ListSinksResponse {
476
529
  /**
477
530
  * If there might be more results than appear in this response, then nextPageToken is included. To get the next set of results, call the same method again using the value of
@@ -740,6 +793,20 @@ declare namespace gapi.client {
740
793
  updateTime?:
741
794
  string;
742
795
  }
796
+ interface LoggingQuery {
797
+ /** An advanced query using the Logging Query Language (https://cloud.google.com/logging/docs/view/logging-query-language). The maximum length of the filter is 20000 characters. */
798
+ filter?:
799
+ string;
800
+ /** Characters will be counted from the end of the string. */
801
+ summaryFieldEnd?:
802
+ number;
803
+ /** The set of summary fields to display for this saved query. */
804
+ summaryFields?:
805
+ SummaryField[];
806
+ /** Characters will be counted from the start of the string. */
807
+ summaryFieldStart?:
808
+ number;
809
+ }
743
810
  interface LogLine {
744
811
  /** App-provided log message. */
745
812
  logMessage?:
@@ -1090,6 +1157,28 @@ declare namespace gapi.client {
1090
1157
  response?:
1091
1158
  { [P in string]: any };
1092
1159
  }
1160
+ interface OpsAnalyticsQuery {
1161
+ /** Required. A logs analytics SQL query, which generally follows BigQuery format.This is the SQL query that appears in the Log Analytics UI's query editor. */
1162
+ sqlQueryText?:
1163
+ string;
1164
+ }
1165
+ interface RecentQuery {
1166
+ /** The timestamp when this query was last run. */
1167
+ lastRunTime?:
1168
+ string;
1169
+ /** Logging query that can be executed in Logs Explorer or via Logging API. */
1170
+ loggingQuery?:
1171
+ LoggingQuery;
1172
+ /**
1173
+ * Output only. Resource name of the recent query.In the format: "projects/[PROJECT_ID]/locations/[LOCATION_ID]/recentQueries/[QUERY_ID]" For a list of supported locations, see
1174
+ * Supported Regions (https://cloud.google.com/logging/docs/region-support)The QUERY_ID is a system generated alphanumeric ID.
1175
+ */
1176
+ name?:
1177
+ string;
1178
+ /** Analytics query that can be executed in Log Analytics. */
1179
+ opsAnalyticsQuery?:
1180
+ OpsAnalyticsQuery;
1181
+ }
1093
1182
  interface RequestLog {
1094
1183
  /** App Engine release version. */
1095
1184
  appEngineRelease?:
@@ -1210,7 +1299,37 @@ declare namespace gapi.client {
1210
1299
  wasLoadingRequest?:
1211
1300
  boolean;
1212
1301
  }
1302
+ interface SavedQuery {
1303
+ /** Output only. The timestamp when the saved query was created. */
1304
+ createTime?:
1305
+ string;
1306
+ /** A human readable description of the saved query. */
1307
+ description?:
1308
+ string;
1309
+ /** The user specified title for the SavedQuery. */
1310
+ displayName?:
1311
+ string;
1312
+ /** Logging query that can be executed in Logs Explorer or via Logging API. */
1313
+ loggingQuery?:
1314
+ LoggingQuery;
1315
+ /**
1316
+ * Output only. Resource name of the saved query.In the format: "projects/[PROJECT_ID]/locations/[LOCATION_ID]/savedQueries/[QUERY_ID]" For a list of supported locations, see Supported
1317
+ * Regions (https://cloud.google.com/logging/docs/region-support#bucket-regions)After the saved query is created, the location cannot be changed.If the user doesn't provide a QUERY_ID,
1318
+ * the system will generate an alphanumeric ID.
1319
+ */
1320
+ name?:
1321
+ string;
1322
+ /** Analytics query that can be executed in Log Analytics. */
1323
+ opsAnalyticsQuery?:
1324
+ OpsAnalyticsQuery;
1325
+ /** Output only. The timestamp when the saved query was last updated. */
1326
+ updateTime?:
1327
+ string;
1328
+ }
1213
1329
  interface Settings {
1330
+ /** Optional. Overrides the built-in configuration for _Default sink. */
1331
+ defaultSinkConfig?:
1332
+ DefaultSinkConfig;
1214
1333
  /**
1215
1334
  * Optional. If set to true, the _Default sink in newly created projects and folders will created in a disabled state. This can be used to automatically disable log storage if there is
1216
1335
  * already an aggregated sink configured in the hierarchy. The _Default sink can be re-enabled manually if needed.
@@ -1234,7 +1353,10 @@ declare namespace gapi.client {
1234
1353
  */
1235
1354
  kmsServiceAccountId?:
1236
1355
  string;
1237
- /** Output only. The service account for the given container. Sinks use this service account as their writer_identity if no custom service account is provided. */
1356
+ /**
1357
+ * Output only. The service account for the given resource container, such as project or folder. Log sinks use this service account as their writer_identity if no custom service
1358
+ * account is provided in the request when calling the create sink method.
1359
+ */
1238
1360
  loggingServiceAccountId?:
1239
1361
  string;
1240
1362
  /** Output only. The resource name of the settings. */
@@ -1284,6 +1406,11 @@ declare namespace gapi.client {
1284
1406
  message?:
1285
1407
  string;
1286
1408
  }
1409
+ interface SummaryField {
1410
+ /** The field from the LogEntry to include in the summary line, for example resource.type or jsonPayload.name. */
1411
+ field?:
1412
+ string;
1413
+ }
1287
1414
  interface SuppressionInfo {
1288
1415
  /** The reason that entries were omitted from the session. */
1289
1416
  reason?:
@@ -3166,9 +3293,9 @@ declare namespace gapi.client {
3166
3293
  string;
3167
3294
  }): Request<ListOperationsResponse>;
3168
3295
  }
3169
- interface LocationsResource {
3170
- /** Gets information about a location. */
3171
- get(request?: {
3296
+ interface RecentQueriesResource {
3297
+ /** Lists the RecentQueries that were created by the user making the request. */
3298
+ list(request?: {
3172
3299
  /** V1 error format. */
3173
3300
  "$.xgafv"?:
3174
3301
  string;
@@ -3187,12 +3314,28 @@ declare namespace gapi.client {
3187
3314
  /** 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. */
3188
3315
  key?:
3189
3316
  string;
3190
- /** Resource name for the location. */
3191
- name:
3192
- string;
3193
3317
  /** OAuth 2.0 token for the current user. */
3194
3318
  oauth_token?:
3195
3319
  string;
3320
+ /**
3321
+ * 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
3322
+ * might be available.
3323
+ */
3324
+ pageSize?:
3325
+ number;
3326
+ /**
3327
+ * 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.
3328
+ * The values of other method parameters should be identical to those in the previous call.
3329
+ */
3330
+ pageToken?:
3331
+ string;
3332
+ /**
3333
+ * Required. The resource to which the listed queries belong. "projects/[PROJECT_ID]/locations/[LOCATION_ID]" "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]"
3334
+ * "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]" "folders/[FOLDER_ID]/locations/[LOCATION_ID]" For example:projects/my-project/locations/us-central1Note: The
3335
+ * location portion of the resource must be specified, but supplying the character - in place of LOCATION_ID will return all recent queries.
3336
+ */
3337
+ parent:
3338
+ string;
3196
3339
  /** Returns response with indentations and line breaks. */
3197
3340
  prettyPrint?:
3198
3341
  boolean;
@@ -3205,9 +3348,11 @@ declare namespace gapi.client {
3205
3348
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3206
3349
  uploadType?:
3207
3350
  string;
3208
- }): Request<Location>;
3209
- /** Lists information about the supported locations for this service. */
3210
- list(request?: {
3351
+ }): Request<ListRecentQueriesResponse>;
3352
+ }
3353
+ interface SavedQueriesResource {
3354
+ /** Creates a new SavedQuery for the user making the request. */
3355
+ create(request: {
3211
3356
  /** V1 error format. */
3212
3357
  "$.xgafv"?:
3213
3358
  string;
@@ -3223,26 +3368,18 @@ declare namespace gapi.client {
3223
3368
  /** Selector specifying which fields to include in a partial response. */
3224
3369
  fields?:
3225
3370
  string;
3226
- /**
3227
- * A filter to narrow down results to a preferred subset. The filtering language accepts strings like "displayName=tokyo", and is documented in more detail in AIP-160
3228
- * (https://google.aip.dev/160).
3229
- */
3230
- filter?:
3231
- string;
3232
3371
  /** 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. */
3233
3372
  key?:
3234
3373
  string;
3235
- /** The resource that owns the locations collection, if applicable. */
3236
- name:
3237
- string;
3238
3374
  /** OAuth 2.0 token for the current user. */
3239
3375
  oauth_token?:
3240
3376
  string;
3241
- /** The maximum number of results to return. If not set, the service selects a default. */
3242
- pageSize?:
3243
- number;
3244
- /** A page token received from the next_page_token field in the response. Send that page token to receive the subsequent page. */
3245
- pageToken?:
3377
+ /**
3378
+ * Required. The parent resource in which to create the saved query: "projects/[PROJECT_ID]/locations/[LOCATION_ID]" "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]"
3379
+ * "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]" "folders/[FOLDER_ID]/locations/[LOCATION_ID]" For example: "projects/my-project/locations/global"
3380
+ * "organizations/123456789/locations/us-central1"
3381
+ */
3382
+ parent:
3246
3383
  string;
3247
3384
  /** Returns response with indentations and line breaks. */
3248
3385
  prettyPrint?:
@@ -3250,24 +3387,24 @@ declare namespace gapi.client {
3250
3387
  /** 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. */
3251
3388
  quotaUser?:
3252
3389
  string;
3390
+ /**
3391
+ * Optional. The ID to use for the saved query, which will become the final component of the saved query's resource name.If the saved_query_id is not provided, the system will
3392
+ * generate an alphanumeric ID.The saved_query_id is limited to 100 characters and can include only the following characters: upper and lower-case alphanumeric characters,
3393
+ * underscores, hyphens, and periods. First character has to be alphanumeric.
3394
+ */
3395
+ savedQueryId?:
3396
+ string;
3253
3397
  /** Upload protocol for media (e.g. "raw", "multipart"). */
3254
3398
  upload_protocol?:
3255
3399
  string;
3256
3400
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3257
3401
  uploadType?:
3258
3402
  string;
3259
- }): Request<ListLocationsResponse>;
3260
- buckets:
3261
- BucketsResource;
3262
- operations:
3263
- OperationsResource;
3264
- }
3265
- interface LogsResource {
3266
- /**
3267
- * Deletes all the log entries in a log for the _Default Log Bucket. The log reappears if it receives new entries. Log entries written shortly before the delete operation might not be
3268
- * deleted. Entries received after the delete operation with a timestamp before the operation will be deleted.
3269
- */
3270
- delete(request?: {
3403
+ /** Request body */
3404
+ resource:
3405
+ SavedQuery;
3406
+ }): Request<SavedQuery>;
3407
+ create(request: {
3271
3408
  /** V1 error format. */
3272
3409
  "$.xgafv"?:
3273
3410
  string;
@@ -3286,31 +3423,39 @@ declare namespace gapi.client {
3286
3423
  /** 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. */
3287
3424
  key?:
3288
3425
  string;
3289
- /**
3290
- * Required. The resource name of the log to delete: projects/[PROJECT_ID]/logs/[LOG_ID] organizations/[ORGANIZATION_ID]/logs/[LOG_ID]
3291
- * billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID] folders/[FOLDER_ID]/logs/[LOG_ID][LOG_ID] must be URL-encoded. For example, "projects/my-project-id/logs/syslog",
3292
- * "organizations/123/logs/cloudaudit.googleapis.com%2Factivity".For more information about log names, see LogEntry.
3293
- */
3294
- logName:
3295
- string;
3296
3426
  /** OAuth 2.0 token for the current user. */
3297
3427
  oauth_token?:
3298
3428
  string;
3429
+ /**
3430
+ * Required. The parent resource in which to create the saved query: "projects/[PROJECT_ID]/locations/[LOCATION_ID]" "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]"
3431
+ * "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]" "folders/[FOLDER_ID]/locations/[LOCATION_ID]" For example: "projects/my-project/locations/global"
3432
+ * "organizations/123456789/locations/us-central1"
3433
+ */
3434
+ parent:
3435
+ string;
3299
3436
  /** Returns response with indentations and line breaks. */
3300
3437
  prettyPrint?:
3301
3438
  boolean;
3302
3439
  /** 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. */
3303
3440
  quotaUser?:
3304
3441
  string;
3442
+ /**
3443
+ * Optional. The ID to use for the saved query, which will become the final component of the saved query's resource name.If the saved_query_id is not provided, the system will
3444
+ * generate an alphanumeric ID.The saved_query_id is limited to 100 characters and can include only the following characters: upper and lower-case alphanumeric characters,
3445
+ * underscores, hyphens, and periods. First character has to be alphanumeric.
3446
+ */
3447
+ savedQueryId?:
3448
+ string;
3305
3449
  /** Upload protocol for media (e.g. "raw", "multipart"). */
3306
3450
  upload_protocol?:
3307
3451
  string;
3308
3452
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3309
3453
  uploadType?:
3310
3454
  string;
3311
- }): Request<{}>;
3312
- /** Lists the logs in projects, organizations, folders, or billing accounts. Only logs that have entries are listed. */
3313
- list(request?: {
3455
+ },
3456
+ body: SavedQuery): Request<SavedQuery>;
3457
+ /** Deletes an existing SavedQuery that was created by the user making the request. */
3458
+ delete(request?: {
3314
3459
  /** V1 error format. */
3315
3460
  "$.xgafv"?:
3316
3461
  string;
@@ -3329,23 +3474,15 @@ declare namespace gapi.client {
3329
3474
  /** 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. */
3330
3475
  key?:
3331
3476
  string;
3332
- /** OAuth 2.0 token for the current user. */
3333
- oauth_token?:
3334
- string;
3335
3477
  /**
3336
- * 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
3337
- * might be available.
3338
- */
3339
- pageSize?:
3340
- number;
3341
- /**
3342
- * 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.
3343
- * The values of other method parameters should be identical to those in the previous call.
3478
+ * Required. The full resource name of the saved query to delete. "projects/[PROJECT_ID]/locations/[LOCATION_ID]/savedQueries/[QUERY_ID]"
3479
+ * "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/savedQueries/[QUERY_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/savedQueries/[QUERY_ID]"
3480
+ * "folders/[FOLDER_ID]/locations/[LOCATION_ID]/savedQueries/[QUERY_ID]" For example: "projects/my-project/locations/global/savedQueries/my-saved-query"
3344
3481
  */
3345
- pageToken?:
3482
+ name:
3346
3483
  string;
3347
- /** Required. The resource name to list logs for: projects/[PROJECT_ID] organizations/[ORGANIZATION_ID] billingAccounts/[BILLING_ACCOUNT_ID] folders/[FOLDER_ID] */
3348
- parent:
3484
+ /** OAuth 2.0 token for the current user. */
3485
+ oauth_token?:
3349
3486
  string;
3350
3487
  /** Returns response with indentations and line breaks. */
3351
3488
  prettyPrint?:
@@ -3353,29 +3490,15 @@ declare namespace gapi.client {
3353
3490
  /** 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. */
3354
3491
  quotaUser?:
3355
3492
  string;
3356
- /**
3357
- * Optional. List of resource names to list logs for: projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]
3358
- * organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]
3359
- * billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]
3360
- * 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]
3361
- * billingAccounts/[BILLING_ACCOUNT_ID] folders/[FOLDER_ID]The resource name in the parent field is added to this list.
3362
- */
3363
- resourceNames?:
3364
- string | string[];
3365
3493
  /** Upload protocol for media (e.g. "raw", "multipart"). */
3366
3494
  upload_protocol?:
3367
3495
  string;
3368
3496
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3369
3497
  uploadType?:
3370
3498
  string;
3371
- }): Request<ListLogsResponse>;
3372
- }
3373
- interface SinksResource {
3374
- /**
3375
- * Creates a sink that exports specified log entries to a destination. The export begins upon ingress, unless the sink's writer_identity is not permitted to write to the destination. A
3376
- * sink can export log entries only from the resource owning the sink.
3377
- */
3378
- create(request: {
3499
+ }): Request<{}>;
3500
+ /** Lists the SavedQueries that were created by the user making the request. */
3501
+ list(request?: {
3379
3502
  /** V1 error format. */
3380
3503
  "$.xgafv"?:
3381
3504
  string;
@@ -3388,12 +3511,6 @@ declare namespace gapi.client {
3388
3511
  /** JSONP */
3389
3512
  callback?:
3390
3513
  string;
3391
- /**
3392
- * Optional. A service account provided by the caller that will be used to write the log entries. The format must be serviceAccount:some@email. This field can only be specified if
3393
- * you are routing logs to a destination outside this sink's project. If not specified, a Logging service account will automatically be generated.
3394
- */
3395
- customWriterIdentity?:
3396
- string;
3397
3514
  /** Selector specifying which fields to include in a partial response. */
3398
3515
  fields?:
3399
3516
  string;
@@ -3404,8 +3521,22 @@ declare namespace gapi.client {
3404
3521
  oauth_token?:
3405
3522
  string;
3406
3523
  /**
3407
- * Required. The resource in which to create the sink: "projects/[PROJECT_ID]" "organizations/[ORGANIZATION_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]" For
3408
- * examples:"projects/my-project" "organizations/123456789"
3524
+ * 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
3525
+ * might be available.
3526
+ */
3527
+ pageSize?:
3528
+ number;
3529
+ /**
3530
+ * 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.
3531
+ * The values of other method parameters should be identical to those in the previous call.
3532
+ */
3533
+ pageToken?:
3534
+ string;
3535
+ /**
3536
+ * Required. The resource to which the listed queries belong. "projects/[PROJECT_ID]/locations/[LOCATION_ID]" "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]"
3537
+ * "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]" "folders/[FOLDER_ID]/locations/[LOCATION_ID]" For example: "projects/my-project/locations/us-central1" Note: The
3538
+ * locations portion of the resource must be specified. To get a list of all saved queries, a wildcard character - can be used for LOCATION_ID, for example:
3539
+ * "projects/my-project/locations/-"
3409
3540
  */
3410
3541
  parent:
3411
3542
  string;
@@ -3415,26 +3546,17 @@ declare namespace gapi.client {
3415
3546
  /** 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. */
3416
3547
  quotaUser?:
3417
3548
  string;
3418
- /**
3419
- * Optional. Determines the kind of IAM identity returned as writer_identity in the new sink. If this value is omitted or set to false, and if the sink's parent is a project, then
3420
- * the value returned as writer_identity is the same group or service account used by Cloud Logging before the addition of writer identities to this API. The sink's destination
3421
- * must be in the same project as the sink itself.If this field is set to true, or if the sink is owned by a non-project resource such as an organization, then the value of
3422
- * writer_identity will be a service agent (https://cloud.google.com/iam/docs/service-account-types#service-agents) used by the sinks with the same parent. For more information,
3423
- * see writer_identity in LogSink.
3424
- */
3425
- uniqueWriterIdentity?:
3426
- boolean;
3427
3549
  /** Upload protocol for media (e.g. "raw", "multipart"). */
3428
3550
  upload_protocol?:
3429
3551
  string;
3430
3552
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3431
3553
  uploadType?:
3432
3554
  string;
3433
- /** Request body */
3434
- resource:
3435
- LogSink;
3436
- }): Request<LogSink>;
3437
- create(request: {
3555
+ }): Request<ListSavedQueriesResponse>;
3556
+ }
3557
+ interface LocationsResource {
3558
+ /** Gets information about a location. */
3559
+ get(request?: {
3438
3560
  /** V1 error format. */
3439
3561
  "$.xgafv"?:
3440
3562
  string;
@@ -3447,52 +3569,33 @@ declare namespace gapi.client {
3447
3569
  /** JSONP */
3448
3570
  callback?:
3449
3571
  string;
3450
- /**
3451
- * Optional. A service account provided by the caller that will be used to write the log entries. The format must be serviceAccount:some@email. This field can only be specified if
3452
- * you are routing logs to a destination outside this sink's project. If not specified, a Logging service account will automatically be generated.
3453
- */
3454
- customWriterIdentity?:
3455
- string;
3456
3572
  /** Selector specifying which fields to include in a partial response. */
3457
3573
  fields?:
3458
3574
  string;
3459
3575
  /** 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. */
3460
3576
  key?:
3461
3577
  string;
3578
+ /** Resource name for the location. */
3579
+ name:
3580
+ string;
3462
3581
  /** OAuth 2.0 token for the current user. */
3463
3582
  oauth_token?:
3464
3583
  string;
3465
- /**
3466
- * Required. The resource in which to create the sink: "projects/[PROJECT_ID]" "organizations/[ORGANIZATION_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]" For
3467
- * examples:"projects/my-project" "organizations/123456789"
3468
- */
3469
- parent:
3470
- string;
3471
3584
  /** Returns response with indentations and line breaks. */
3472
3585
  prettyPrint?:
3473
3586
  boolean;
3474
3587
  /** 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. */
3475
3588
  quotaUser?:
3476
3589
  string;
3477
- /**
3478
- * Optional. Determines the kind of IAM identity returned as writer_identity in the new sink. If this value is omitted or set to false, and if the sink's parent is a project, then
3479
- * the value returned as writer_identity is the same group or service account used by Cloud Logging before the addition of writer identities to this API. The sink's destination
3480
- * must be in the same project as the sink itself.If this field is set to true, or if the sink is owned by a non-project resource such as an organization, then the value of
3481
- * writer_identity will be a service agent (https://cloud.google.com/iam/docs/service-account-types#service-agents) used by the sinks with the same parent. For more information,
3482
- * see writer_identity in LogSink.
3483
- */
3484
- uniqueWriterIdentity?:
3485
- boolean;
3486
3590
  /** Upload protocol for media (e.g. "raw", "multipart"). */
3487
3591
  upload_protocol?:
3488
3592
  string;
3489
3593
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3490
3594
  uploadType?:
3491
3595
  string;
3492
- },
3493
- body: LogSink): Request<LogSink>;
3494
- /** Deletes a sink. If the sink has a unique writer_identity, then that service account is also deleted. */
3495
- delete(request?: {
3596
+ }): Request<Location>;
3597
+ /** Lists information about the supported locations for this service. */
3598
+ list(request?: {
3496
3599
  /** V1 error format. */
3497
3600
  "$.xgafv"?:
3498
3601
  string;
@@ -3508,13 +3611,302 @@ declare namespace gapi.client {
3508
3611
  /** Selector specifying which fields to include in a partial response. */
3509
3612
  fields?:
3510
3613
  string;
3614
+ /**
3615
+ * A filter to narrow down results to a preferred subset. The filtering language accepts strings like "displayName=tokyo", and is documented in more detail in AIP-160
3616
+ * (https://google.aip.dev/160).
3617
+ */
3618
+ filter?:
3619
+ string;
3511
3620
  /** 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. */
3512
3621
  key?:
3513
3622
  string;
3623
+ /** The resource that owns the locations collection, if applicable. */
3624
+ name:
3625
+ string;
3514
3626
  /** OAuth 2.0 token for the current user. */
3515
3627
  oauth_token?:
3516
3628
  string;
3517
- /** Returns response with indentations and line breaks. */
3629
+ /** The maximum number of results to return. If not set, the service selects a default. */
3630
+ pageSize?:
3631
+ number;
3632
+ /** A page token received from the next_page_token field in the response. Send that page token to receive the subsequent page. */
3633
+ pageToken?:
3634
+ string;
3635
+ /** Returns response with indentations and line breaks. */
3636
+ prettyPrint?:
3637
+ boolean;
3638
+ /** 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. */
3639
+ quotaUser?:
3640
+ string;
3641
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3642
+ upload_protocol?:
3643
+ string;
3644
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3645
+ uploadType?:
3646
+ string;
3647
+ }): Request<ListLocationsResponse>;
3648
+ buckets:
3649
+ BucketsResource;
3650
+ operations:
3651
+ OperationsResource;
3652
+ recentQueries:
3653
+ RecentQueriesResource;
3654
+ savedQueries:
3655
+ SavedQueriesResource;
3656
+ }
3657
+ interface LogsResource {
3658
+ /**
3659
+ * Deletes all the log entries in a log for the _Default Log Bucket. The log reappears if it receives new entries. Log entries written shortly before the delete operation might not be
3660
+ * deleted. Entries received after the delete operation with a timestamp before the operation will be deleted.
3661
+ */
3662
+ delete(request?: {
3663
+ /** V1 error format. */
3664
+ "$.xgafv"?:
3665
+ string;
3666
+ /** OAuth access token. */
3667
+ access_token?:
3668
+ string;
3669
+ /** Data format for response. */
3670
+ alt?:
3671
+ string;
3672
+ /** JSONP */
3673
+ callback?:
3674
+ string;
3675
+ /** Selector specifying which fields to include in a partial response. */
3676
+ fields?:
3677
+ string;
3678
+ /** 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. */
3679
+ key?:
3680
+ string;
3681
+ /**
3682
+ * Required. The resource name of the log to delete: projects/[PROJECT_ID]/logs/[LOG_ID] organizations/[ORGANIZATION_ID]/logs/[LOG_ID]
3683
+ * billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID] folders/[FOLDER_ID]/logs/[LOG_ID][LOG_ID] must be URL-encoded. For example, "projects/my-project-id/logs/syslog",
3684
+ * "organizations/123/logs/cloudaudit.googleapis.com%2Factivity".For more information about log names, see LogEntry.
3685
+ */
3686
+ logName:
3687
+ string;
3688
+ /** OAuth 2.0 token for the current user. */
3689
+ oauth_token?:
3690
+ string;
3691
+ /** Returns response with indentations and line breaks. */
3692
+ prettyPrint?:
3693
+ boolean;
3694
+ /** 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. */
3695
+ quotaUser?:
3696
+ string;
3697
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3698
+ upload_protocol?:
3699
+ string;
3700
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3701
+ uploadType?:
3702
+ string;
3703
+ }): Request<{}>;
3704
+ /** Lists the logs in projects, organizations, folders, or billing accounts. Only logs that have entries are listed. */
3705
+ list(request?: {
3706
+ /** V1 error format. */
3707
+ "$.xgafv"?:
3708
+ string;
3709
+ /** OAuth access token. */
3710
+ access_token?:
3711
+ string;
3712
+ /** Data format for response. */
3713
+ alt?:
3714
+ string;
3715
+ /** JSONP */
3716
+ callback?:
3717
+ string;
3718
+ /** Selector specifying which fields to include in a partial response. */
3719
+ fields?:
3720
+ string;
3721
+ /** 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. */
3722
+ key?:
3723
+ string;
3724
+ /** OAuth 2.0 token for the current user. */
3725
+ oauth_token?:
3726
+ string;
3727
+ /**
3728
+ * 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
3729
+ * might be available.
3730
+ */
3731
+ pageSize?:
3732
+ number;
3733
+ /**
3734
+ * 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.
3735
+ * The values of other method parameters should be identical to those in the previous call.
3736
+ */
3737
+ pageToken?:
3738
+ string;
3739
+ /** Required. The resource name to list logs for: projects/[PROJECT_ID] organizations/[ORGANIZATION_ID] billingAccounts/[BILLING_ACCOUNT_ID] folders/[FOLDER_ID] */
3740
+ parent:
3741
+ string;
3742
+ /** Returns response with indentations and line breaks. */
3743
+ prettyPrint?:
3744
+ boolean;
3745
+ /** 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. */
3746
+ quotaUser?:
3747
+ string;
3748
+ /**
3749
+ * Optional. List of resource names to list logs for: projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]
3750
+ * organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]
3751
+ * billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]
3752
+ * 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]
3753
+ * billingAccounts/[BILLING_ACCOUNT_ID] folders/[FOLDER_ID]The resource name in the parent field is added to this list.
3754
+ */
3755
+ resourceNames?:
3756
+ string | string[];
3757
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3758
+ upload_protocol?:
3759
+ string;
3760
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3761
+ uploadType?:
3762
+ string;
3763
+ }): Request<ListLogsResponse>;
3764
+ }
3765
+ interface SinksResource {
3766
+ /**
3767
+ * Creates a sink that exports specified log entries to a destination. The export begins upon ingress, unless the sink's writer_identity is not permitted to write to the destination. A
3768
+ * sink can export log entries only from the resource owning the sink.
3769
+ */
3770
+ create(request: {
3771
+ /** V1 error format. */
3772
+ "$.xgafv"?:
3773
+ string;
3774
+ /** OAuth access token. */
3775
+ access_token?:
3776
+ string;
3777
+ /** Data format for response. */
3778
+ alt?:
3779
+ string;
3780
+ /** JSONP */
3781
+ callback?:
3782
+ string;
3783
+ /**
3784
+ * Optional. A service account provided by the caller that will be used to write the log entries. The format must be serviceAccount:some@email. This field can only be specified if
3785
+ * you are routing logs to a destination outside this sink's project. If not specified, a Logging service account will automatically be generated.
3786
+ */
3787
+ customWriterIdentity?:
3788
+ string;
3789
+ /** Selector specifying which fields to include in a partial response. */
3790
+ fields?:
3791
+ string;
3792
+ /** 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. */
3793
+ key?:
3794
+ string;
3795
+ /** OAuth 2.0 token for the current user. */
3796
+ oauth_token?:
3797
+ string;
3798
+ /**
3799
+ * Required. The resource in which to create the sink: "projects/[PROJECT_ID]" "organizations/[ORGANIZATION_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]" For
3800
+ * examples:"projects/my-project" "organizations/123456789"
3801
+ */
3802
+ parent:
3803
+ string;
3804
+ /** Returns response with indentations and line breaks. */
3805
+ prettyPrint?:
3806
+ boolean;
3807
+ /** 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. */
3808
+ quotaUser?:
3809
+ string;
3810
+ /**
3811
+ * Optional. Determines the kind of IAM identity returned as writer_identity in the new sink. If this value is omitted or set to false, and if the sink's parent is a project, then
3812
+ * the value returned as writer_identity is the same group or service account used by Cloud Logging before the addition of writer identities to this API. The sink's destination
3813
+ * must be in the same project as the sink itself.If this field is set to true, or if the sink is owned by a non-project resource such as an organization, then the value of
3814
+ * writer_identity will be a service agent (https://cloud.google.com/iam/docs/service-account-types#service-agents) used by the sinks with the same parent. For more information,
3815
+ * see writer_identity in LogSink.
3816
+ */
3817
+ uniqueWriterIdentity?:
3818
+ boolean;
3819
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3820
+ upload_protocol?:
3821
+ string;
3822
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3823
+ uploadType?:
3824
+ string;
3825
+ /** Request body */
3826
+ resource:
3827
+ LogSink;
3828
+ }): Request<LogSink>;
3829
+ create(request: {
3830
+ /** V1 error format. */
3831
+ "$.xgafv"?:
3832
+ string;
3833
+ /** OAuth access token. */
3834
+ access_token?:
3835
+ string;
3836
+ /** Data format for response. */
3837
+ alt?:
3838
+ string;
3839
+ /** JSONP */
3840
+ callback?:
3841
+ string;
3842
+ /**
3843
+ * Optional. A service account provided by the caller that will be used to write the log entries. The format must be serviceAccount:some@email. This field can only be specified if
3844
+ * you are routing logs to a destination outside this sink's project. If not specified, a Logging service account will automatically be generated.
3845
+ */
3846
+ customWriterIdentity?:
3847
+ string;
3848
+ /** Selector specifying which fields to include in a partial response. */
3849
+ fields?:
3850
+ string;
3851
+ /** 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. */
3852
+ key?:
3853
+ string;
3854
+ /** OAuth 2.0 token for the current user. */
3855
+ oauth_token?:
3856
+ string;
3857
+ /**
3858
+ * Required. The resource in which to create the sink: "projects/[PROJECT_ID]" "organizations/[ORGANIZATION_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]" For
3859
+ * examples:"projects/my-project" "organizations/123456789"
3860
+ */
3861
+ parent:
3862
+ string;
3863
+ /** Returns response with indentations and line breaks. */
3864
+ prettyPrint?:
3865
+ boolean;
3866
+ /** 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. */
3867
+ quotaUser?:
3868
+ string;
3869
+ /**
3870
+ * Optional. Determines the kind of IAM identity returned as writer_identity in the new sink. If this value is omitted or set to false, and if the sink's parent is a project, then
3871
+ * the value returned as writer_identity is the same group or service account used by Cloud Logging before the addition of writer identities to this API. The sink's destination
3872
+ * must be in the same project as the sink itself.If this field is set to true, or if the sink is owned by a non-project resource such as an organization, then the value of
3873
+ * writer_identity will be a service agent (https://cloud.google.com/iam/docs/service-account-types#service-agents) used by the sinks with the same parent. For more information,
3874
+ * see writer_identity in LogSink.
3875
+ */
3876
+ uniqueWriterIdentity?:
3877
+ boolean;
3878
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3879
+ upload_protocol?:
3880
+ string;
3881
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3882
+ uploadType?:
3883
+ string;
3884
+ },
3885
+ body: LogSink): Request<LogSink>;
3886
+ /** Deletes a sink. If the sink has a unique writer_identity, then that service account is also deleted. */
3887
+ delete(request?: {
3888
+ /** V1 error format. */
3889
+ "$.xgafv"?:
3890
+ string;
3891
+ /** OAuth access token. */
3892
+ access_token?:
3893
+ string;
3894
+ /** Data format for response. */
3895
+ alt?:
3896
+ string;
3897
+ /** JSONP */
3898
+ callback?:
3899
+ string;
3900
+ /** Selector specifying which fields to include in a partial response. */
3901
+ fields?:
3902
+ string;
3903
+ /** 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. */
3904
+ key?:
3905
+ string;
3906
+ /** OAuth 2.0 token for the current user. */
3907
+ oauth_token?:
3908
+ string;
3909
+ /** Returns response with indentations and line breaks. */
3518
3910
  prettyPrint?:
3519
3911
  boolean;
3520
3912
  /** 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. */
@@ -6329,9 +6721,258 @@ declare namespace gapi.client {
6329
6721
  uploadType?:
6330
6722
  string;
6331
6723
  },
6332
- body: CancelOperationRequest): Request<{}>;
6333
- /** Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service. */
6334
- get(request?: {
6724
+ body: CancelOperationRequest): Request<{}>;
6725
+ /** Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service. */
6726
+ get(request?: {
6727
+ /** V1 error format. */
6728
+ "$.xgafv"?:
6729
+ string;
6730
+ /** OAuth access token. */
6731
+ access_token?:
6732
+ string;
6733
+ /** Data format for response. */
6734
+ alt?:
6735
+ string;
6736
+ /** JSONP */
6737
+ callback?:
6738
+ string;
6739
+ /** Selector specifying which fields to include in a partial response. */
6740
+ fields?:
6741
+ string;
6742
+ /** 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. */
6743
+ key?:
6744
+ string;
6745
+ /** The name of the operation resource. */
6746
+ name:
6747
+ string;
6748
+ /** OAuth 2.0 token for the current user. */
6749
+ oauth_token?:
6750
+ string;
6751
+ /** Returns response with indentations and line breaks. */
6752
+ prettyPrint?:
6753
+ boolean;
6754
+ /** 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. */
6755
+ quotaUser?:
6756
+ string;
6757
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
6758
+ upload_protocol?:
6759
+ string;
6760
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
6761
+ uploadType?:
6762
+ string;
6763
+ }): Request<Operation>;
6764
+ /** Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns UNIMPLEMENTED. */
6765
+ list(request?: {
6766
+ /** V1 error format. */
6767
+ "$.xgafv"?:
6768
+ string;
6769
+ /** OAuth access token. */
6770
+ access_token?:
6771
+ string;
6772
+ /** Data format for response. */
6773
+ alt?:
6774
+ string;
6775
+ /** JSONP */
6776
+ callback?:
6777
+ string;
6778
+ /** Selector specifying which fields to include in a partial response. */
6779
+ fields?:
6780
+ string;
6781
+ /** The standard list filter. */
6782
+ filter?:
6783
+ string;
6784
+ /** 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. */
6785
+ key?:
6786
+ string;
6787
+ /** The name of the operation's parent resource. */
6788
+ name:
6789
+ string;
6790
+ /** OAuth 2.0 token for the current user. */
6791
+ oauth_token?:
6792
+ string;
6793
+ /** The standard list page size. */
6794
+ pageSize?:
6795
+ number;
6796
+ /** The standard list page token. */
6797
+ pageToken?:
6798
+ string;
6799
+ /** Returns response with indentations and line breaks. */
6800
+ prettyPrint?:
6801
+ boolean;
6802
+ /** 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. */
6803
+ quotaUser?:
6804
+ string;
6805
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
6806
+ upload_protocol?:
6807
+ string;
6808
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
6809
+ uploadType?:
6810
+ string;
6811
+ }): Request<ListOperationsResponse>;
6812
+ }
6813
+ interface RecentQueriesResource {
6814
+ /** Lists the RecentQueries that were created by the user making the request. */
6815
+ list(request?: {
6816
+ /** V1 error format. */
6817
+ "$.xgafv"?:
6818
+ string;
6819
+ /** OAuth access token. */
6820
+ access_token?:
6821
+ string;
6822
+ /** Data format for response. */
6823
+ alt?:
6824
+ string;
6825
+ /** JSONP */
6826
+ callback?:
6827
+ string;
6828
+ /** Selector specifying which fields to include in a partial response. */
6829
+ fields?:
6830
+ string;
6831
+ /** 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. */
6832
+ key?:
6833
+ string;
6834
+ /** OAuth 2.0 token for the current user. */
6835
+ oauth_token?:
6836
+ string;
6837
+ /**
6838
+ * 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
6839
+ * might be available.
6840
+ */
6841
+ pageSize?:
6842
+ number;
6843
+ /**
6844
+ * 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.
6845
+ * The values of other method parameters should be identical to those in the previous call.
6846
+ */
6847
+ pageToken?:
6848
+ string;
6849
+ /**
6850
+ * Required. The resource to which the listed queries belong. "projects/[PROJECT_ID]/locations/[LOCATION_ID]" "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]"
6851
+ * "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]" "folders/[FOLDER_ID]/locations/[LOCATION_ID]" For example:projects/my-project/locations/us-central1Note: The
6852
+ * location portion of the resource must be specified, but supplying the character - in place of LOCATION_ID will return all recent queries.
6853
+ */
6854
+ parent:
6855
+ string;
6856
+ /** Returns response with indentations and line breaks. */
6857
+ prettyPrint?:
6858
+ boolean;
6859
+ /** 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. */
6860
+ quotaUser?:
6861
+ string;
6862
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
6863
+ upload_protocol?:
6864
+ string;
6865
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
6866
+ uploadType?:
6867
+ string;
6868
+ }): Request<ListRecentQueriesResponse>;
6869
+ }
6870
+ interface SavedQueriesResource {
6871
+ /** Creates a new SavedQuery for the user making the request. */
6872
+ create(request: {
6873
+ /** V1 error format. */
6874
+ "$.xgafv"?:
6875
+ string;
6876
+ /** OAuth access token. */
6877
+ access_token?:
6878
+ string;
6879
+ /** Data format for response. */
6880
+ alt?:
6881
+ string;
6882
+ /** JSONP */
6883
+ callback?:
6884
+ string;
6885
+ /** Selector specifying which fields to include in a partial response. */
6886
+ fields?:
6887
+ string;
6888
+ /** 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. */
6889
+ key?:
6890
+ string;
6891
+ /** OAuth 2.0 token for the current user. */
6892
+ oauth_token?:
6893
+ string;
6894
+ /**
6895
+ * Required. The parent resource in which to create the saved query: "projects/[PROJECT_ID]/locations/[LOCATION_ID]" "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]"
6896
+ * "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]" "folders/[FOLDER_ID]/locations/[LOCATION_ID]" For example: "projects/my-project/locations/global"
6897
+ * "organizations/123456789/locations/us-central1"
6898
+ */
6899
+ parent:
6900
+ string;
6901
+ /** Returns response with indentations and line breaks. */
6902
+ prettyPrint?:
6903
+ boolean;
6904
+ /** 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. */
6905
+ quotaUser?:
6906
+ string;
6907
+ /**
6908
+ * Optional. The ID to use for the saved query, which will become the final component of the saved query's resource name.If the saved_query_id is not provided, the system will
6909
+ * generate an alphanumeric ID.The saved_query_id is limited to 100 characters and can include only the following characters: upper and lower-case alphanumeric characters,
6910
+ * underscores, hyphens, and periods. First character has to be alphanumeric.
6911
+ */
6912
+ savedQueryId?:
6913
+ string;
6914
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
6915
+ upload_protocol?:
6916
+ string;
6917
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
6918
+ uploadType?:
6919
+ string;
6920
+ /** Request body */
6921
+ resource:
6922
+ SavedQuery;
6923
+ }): Request<SavedQuery>;
6924
+ create(request: {
6925
+ /** V1 error format. */
6926
+ "$.xgafv"?:
6927
+ string;
6928
+ /** OAuth access token. */
6929
+ access_token?:
6930
+ string;
6931
+ /** Data format for response. */
6932
+ alt?:
6933
+ string;
6934
+ /** JSONP */
6935
+ callback?:
6936
+ string;
6937
+ /** Selector specifying which fields to include in a partial response. */
6938
+ fields?:
6939
+ string;
6940
+ /** 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. */
6941
+ key?:
6942
+ string;
6943
+ /** OAuth 2.0 token for the current user. */
6944
+ oauth_token?:
6945
+ string;
6946
+ /**
6947
+ * Required. The parent resource in which to create the saved query: "projects/[PROJECT_ID]/locations/[LOCATION_ID]" "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]"
6948
+ * "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]" "folders/[FOLDER_ID]/locations/[LOCATION_ID]" For example: "projects/my-project/locations/global"
6949
+ * "organizations/123456789/locations/us-central1"
6950
+ */
6951
+ parent:
6952
+ string;
6953
+ /** Returns response with indentations and line breaks. */
6954
+ prettyPrint?:
6955
+ boolean;
6956
+ /** 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. */
6957
+ quotaUser?:
6958
+ string;
6959
+ /**
6960
+ * Optional. The ID to use for the saved query, which will become the final component of the saved query's resource name.If the saved_query_id is not provided, the system will
6961
+ * generate an alphanumeric ID.The saved_query_id is limited to 100 characters and can include only the following characters: upper and lower-case alphanumeric characters,
6962
+ * underscores, hyphens, and periods. First character has to be alphanumeric.
6963
+ */
6964
+ savedQueryId?:
6965
+ string;
6966
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
6967
+ upload_protocol?:
6968
+ string;
6969
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
6970
+ uploadType?:
6971
+ string;
6972
+ },
6973
+ body: SavedQuery): Request<SavedQuery>;
6974
+ /** Deletes an existing SavedQuery that was created by the user making the request. */
6975
+ delete(request?: {
6335
6976
  /** V1 error format. */
6336
6977
  "$.xgafv"?:
6337
6978
  string;
@@ -6350,7 +6991,11 @@ declare namespace gapi.client {
6350
6991
  /** 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. */
6351
6992
  key?:
6352
6993
  string;
6353
- /** The name of the operation resource. */
6994
+ /**
6995
+ * Required. The full resource name of the saved query to delete. "projects/[PROJECT_ID]/locations/[LOCATION_ID]/savedQueries/[QUERY_ID]"
6996
+ * "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/savedQueries/[QUERY_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/savedQueries/[QUERY_ID]"
6997
+ * "folders/[FOLDER_ID]/locations/[LOCATION_ID]/savedQueries/[QUERY_ID]" For example: "projects/my-project/locations/global/savedQueries/my-saved-query"
6998
+ */
6354
6999
  name:
6355
7000
  string;
6356
7001
  /** OAuth 2.0 token for the current user. */
@@ -6368,8 +7013,8 @@ declare namespace gapi.client {
6368
7013
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
6369
7014
  uploadType?:
6370
7015
  string;
6371
- }): Request<Operation>;
6372
- /** Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns UNIMPLEMENTED. */
7016
+ }): Request<{}>;
7017
+ /** Lists the SavedQueries that were created by the user making the request. */
6373
7018
  list(request?: {
6374
7019
  /** V1 error format. */
6375
7020
  "$.xgafv"?:
@@ -6386,24 +7031,32 @@ declare namespace gapi.client {
6386
7031
  /** Selector specifying which fields to include in a partial response. */
6387
7032
  fields?:
6388
7033
  string;
6389
- /** The standard list filter. */
6390
- filter?:
6391
- string;
6392
7034
  /** 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. */
6393
7035
  key?:
6394
7036
  string;
6395
- /** The name of the operation's parent resource. */
6396
- name:
6397
- string;
6398
7037
  /** OAuth 2.0 token for the current user. */
6399
7038
  oauth_token?:
6400
7039
  string;
6401
- /** The standard list page size. */
7040
+ /**
7041
+ * 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
7042
+ * might be available.
7043
+ */
6402
7044
  pageSize?:
6403
7045
  number;
6404
- /** The standard list page token. */
7046
+ /**
7047
+ * 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.
7048
+ * The values of other method parameters should be identical to those in the previous call.
7049
+ */
6405
7050
  pageToken?:
6406
7051
  string;
7052
+ /**
7053
+ * Required. The resource to which the listed queries belong. "projects/[PROJECT_ID]/locations/[LOCATION_ID]" "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]"
7054
+ * "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]" "folders/[FOLDER_ID]/locations/[LOCATION_ID]" For example: "projects/my-project/locations/us-central1" Note: The
7055
+ * locations portion of the resource must be specified. To get a list of all saved queries, a wildcard character - can be used for LOCATION_ID, for example:
7056
+ * "projects/my-project/locations/-"
7057
+ */
7058
+ parent:
7059
+ string;
6407
7060
  /** Returns response with indentations and line breaks. */
6408
7061
  prettyPrint?:
6409
7062
  boolean;
@@ -6416,7 +7069,7 @@ declare namespace gapi.client {
6416
7069
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
6417
7070
  uploadType?:
6418
7071
  string;
6419
- }): Request<ListOperationsResponse>;
7072
+ }): Request<ListSavedQueriesResponse>;
6420
7073
  }
6421
7074
  interface LocationsResource {
6422
7075
  /** Gets information about a location. */
@@ -6513,6 +7166,10 @@ declare namespace gapi.client {
6513
7166
  BucketsResource;
6514
7167
  operations:
6515
7168
  OperationsResource;
7169
+ recentQueries:
7170
+ RecentQueriesResource;
7171
+ savedQueries:
7172
+ SavedQueriesResource;
6516
7173
  }
6517
7174
  interface LogsResource {
6518
7175
  /**
@@ -10694,7 +11351,260 @@ declare namespace gapi.client {
10694
11351
  /** 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. */
10695
11352
  key?:
10696
11353
  string;
10697
- /** The name of the operation resource. */
11354
+ /** The name of the operation resource. */
11355
+ name:
11356
+ string;
11357
+ /** OAuth 2.0 token for the current user. */
11358
+ oauth_token?:
11359
+ string;
11360
+ /** Returns response with indentations and line breaks. */
11361
+ prettyPrint?:
11362
+ boolean;
11363
+ /** 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. */
11364
+ quotaUser?:
11365
+ string;
11366
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
11367
+ upload_protocol?:
11368
+ string;
11369
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
11370
+ uploadType?:
11371
+ string;
11372
+ }): Request<Operation>;
11373
+ /** Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns UNIMPLEMENTED. */
11374
+ list(request?: {
11375
+ /** V1 error format. */
11376
+ "$.xgafv"?:
11377
+ string;
11378
+ /** OAuth access token. */
11379
+ access_token?:
11380
+ string;
11381
+ /** Data format for response. */
11382
+ alt?:
11383
+ string;
11384
+ /** JSONP */
11385
+ callback?:
11386
+ string;
11387
+ /** Selector specifying which fields to include in a partial response. */
11388
+ fields?:
11389
+ string;
11390
+ /** The standard list filter. */
11391
+ filter?:
11392
+ string;
11393
+ /** 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. */
11394
+ key?:
11395
+ string;
11396
+ /** The name of the operation's parent resource. */
11397
+ name:
11398
+ string;
11399
+ /** OAuth 2.0 token for the current user. */
11400
+ oauth_token?:
11401
+ string;
11402
+ /** The standard list page size. */
11403
+ pageSize?:
11404
+ number;
11405
+ /** The standard list page token. */
11406
+ pageToken?:
11407
+ string;
11408
+ /** Returns response with indentations and line breaks. */
11409
+ prettyPrint?:
11410
+ boolean;
11411
+ /** 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. */
11412
+ quotaUser?:
11413
+ string;
11414
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
11415
+ upload_protocol?:
11416
+ string;
11417
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
11418
+ uploadType?:
11419
+ string;
11420
+ }): Request<ListOperationsResponse>;
11421
+ }
11422
+ interface RecentQueriesResource {
11423
+ /** Lists the RecentQueries that were created by the user making the request. */
11424
+ list(request?: {
11425
+ /** V1 error format. */
11426
+ "$.xgafv"?:
11427
+ string;
11428
+ /** OAuth access token. */
11429
+ access_token?:
11430
+ string;
11431
+ /** Data format for response. */
11432
+ alt?:
11433
+ string;
11434
+ /** JSONP */
11435
+ callback?:
11436
+ string;
11437
+ /** Selector specifying which fields to include in a partial response. */
11438
+ fields?:
11439
+ string;
11440
+ /** 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. */
11441
+ key?:
11442
+ string;
11443
+ /** OAuth 2.0 token for the current user. */
11444
+ oauth_token?:
11445
+ string;
11446
+ /**
11447
+ * 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
11448
+ * might be available.
11449
+ */
11450
+ pageSize?:
11451
+ number;
11452
+ /**
11453
+ * 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.
11454
+ * The values of other method parameters should be identical to those in the previous call.
11455
+ */
11456
+ pageToken?:
11457
+ string;
11458
+ /**
11459
+ * Required. The resource to which the listed queries belong. "projects/[PROJECT_ID]/locations/[LOCATION_ID]" "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]"
11460
+ * "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]" "folders/[FOLDER_ID]/locations/[LOCATION_ID]" For example:projects/my-project/locations/us-central1Note: The
11461
+ * location portion of the resource must be specified, but supplying the character - in place of LOCATION_ID will return all recent queries.
11462
+ */
11463
+ parent:
11464
+ string;
11465
+ /** Returns response with indentations and line breaks. */
11466
+ prettyPrint?:
11467
+ boolean;
11468
+ /** 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. */
11469
+ quotaUser?:
11470
+ string;
11471
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
11472
+ upload_protocol?:
11473
+ string;
11474
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
11475
+ uploadType?:
11476
+ string;
11477
+ }): Request<ListRecentQueriesResponse>;
11478
+ }
11479
+ interface SavedQueriesResource {
11480
+ /** Creates a new SavedQuery for the user making the request. */
11481
+ create(request: {
11482
+ /** V1 error format. */
11483
+ "$.xgafv"?:
11484
+ string;
11485
+ /** OAuth access token. */
11486
+ access_token?:
11487
+ string;
11488
+ /** Data format for response. */
11489
+ alt?:
11490
+ string;
11491
+ /** JSONP */
11492
+ callback?:
11493
+ string;
11494
+ /** Selector specifying which fields to include in a partial response. */
11495
+ fields?:
11496
+ string;
11497
+ /** 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. */
11498
+ key?:
11499
+ string;
11500
+ /** OAuth 2.0 token for the current user. */
11501
+ oauth_token?:
11502
+ string;
11503
+ /**
11504
+ * Required. The parent resource in which to create the saved query: "projects/[PROJECT_ID]/locations/[LOCATION_ID]" "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]"
11505
+ * "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]" "folders/[FOLDER_ID]/locations/[LOCATION_ID]" For example: "projects/my-project/locations/global"
11506
+ * "organizations/123456789/locations/us-central1"
11507
+ */
11508
+ parent:
11509
+ string;
11510
+ /** Returns response with indentations and line breaks. */
11511
+ prettyPrint?:
11512
+ boolean;
11513
+ /** 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. */
11514
+ quotaUser?:
11515
+ string;
11516
+ /**
11517
+ * Optional. The ID to use for the saved query, which will become the final component of the saved query's resource name.If the saved_query_id is not provided, the system will
11518
+ * generate an alphanumeric ID.The saved_query_id is limited to 100 characters and can include only the following characters: upper and lower-case alphanumeric characters,
11519
+ * underscores, hyphens, and periods. First character has to be alphanumeric.
11520
+ */
11521
+ savedQueryId?:
11522
+ string;
11523
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
11524
+ upload_protocol?:
11525
+ string;
11526
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
11527
+ uploadType?:
11528
+ string;
11529
+ /** Request body */
11530
+ resource:
11531
+ SavedQuery;
11532
+ }): Request<SavedQuery>;
11533
+ create(request: {
11534
+ /** V1 error format. */
11535
+ "$.xgafv"?:
11536
+ string;
11537
+ /** OAuth access token. */
11538
+ access_token?:
11539
+ string;
11540
+ /** Data format for response. */
11541
+ alt?:
11542
+ string;
11543
+ /** JSONP */
11544
+ callback?:
11545
+ string;
11546
+ /** Selector specifying which fields to include in a partial response. */
11547
+ fields?:
11548
+ string;
11549
+ /** 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. */
11550
+ key?:
11551
+ string;
11552
+ /** OAuth 2.0 token for the current user. */
11553
+ oauth_token?:
11554
+ string;
11555
+ /**
11556
+ * Required. The parent resource in which to create the saved query: "projects/[PROJECT_ID]/locations/[LOCATION_ID]" "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]"
11557
+ * "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]" "folders/[FOLDER_ID]/locations/[LOCATION_ID]" For example: "projects/my-project/locations/global"
11558
+ * "organizations/123456789/locations/us-central1"
11559
+ */
11560
+ parent:
11561
+ string;
11562
+ /** Returns response with indentations and line breaks. */
11563
+ prettyPrint?:
11564
+ boolean;
11565
+ /** 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. */
11566
+ quotaUser?:
11567
+ string;
11568
+ /**
11569
+ * Optional. The ID to use for the saved query, which will become the final component of the saved query's resource name.If the saved_query_id is not provided, the system will
11570
+ * generate an alphanumeric ID.The saved_query_id is limited to 100 characters and can include only the following characters: upper and lower-case alphanumeric characters,
11571
+ * underscores, hyphens, and periods. First character has to be alphanumeric.
11572
+ */
11573
+ savedQueryId?:
11574
+ string;
11575
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
11576
+ upload_protocol?:
11577
+ string;
11578
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
11579
+ uploadType?:
11580
+ string;
11581
+ },
11582
+ body: SavedQuery): Request<SavedQuery>;
11583
+ /** Deletes an existing SavedQuery that was created by the user making the request. */
11584
+ delete(request?: {
11585
+ /** V1 error format. */
11586
+ "$.xgafv"?:
11587
+ string;
11588
+ /** OAuth access token. */
11589
+ access_token?:
11590
+ string;
11591
+ /** Data format for response. */
11592
+ alt?:
11593
+ string;
11594
+ /** JSONP */
11595
+ callback?:
11596
+ string;
11597
+ /** Selector specifying which fields to include in a partial response. */
11598
+ fields?:
11599
+ string;
11600
+ /** 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. */
11601
+ key?:
11602
+ string;
11603
+ /**
11604
+ * Required. The full resource name of the saved query to delete. "projects/[PROJECT_ID]/locations/[LOCATION_ID]/savedQueries/[QUERY_ID]"
11605
+ * "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/savedQueries/[QUERY_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/savedQueries/[QUERY_ID]"
11606
+ * "folders/[FOLDER_ID]/locations/[LOCATION_ID]/savedQueries/[QUERY_ID]" For example: "projects/my-project/locations/global/savedQueries/my-saved-query"
11607
+ */
10698
11608
  name:
10699
11609
  string;
10700
11610
  /** OAuth 2.0 token for the current user. */
@@ -10712,8 +11622,8 @@ declare namespace gapi.client {
10712
11622
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
10713
11623
  uploadType?:
10714
11624
  string;
10715
- }): Request<Operation>;
10716
- /** Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns UNIMPLEMENTED. */
11625
+ }): Request<{}>;
11626
+ /** Lists the SavedQueries that were created by the user making the request. */
10717
11627
  list(request?: {
10718
11628
  /** V1 error format. */
10719
11629
  "$.xgafv"?:
@@ -10730,24 +11640,32 @@ declare namespace gapi.client {
10730
11640
  /** Selector specifying which fields to include in a partial response. */
10731
11641
  fields?:
10732
11642
  string;
10733
- /** The standard list filter. */
10734
- filter?:
10735
- string;
10736
11643
  /** 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. */
10737
11644
  key?:
10738
11645
  string;
10739
- /** The name of the operation's parent resource. */
10740
- name:
10741
- string;
10742
11646
  /** OAuth 2.0 token for the current user. */
10743
11647
  oauth_token?:
10744
11648
  string;
10745
- /** The standard list page size. */
11649
+ /**
11650
+ * 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
11651
+ * might be available.
11652
+ */
10746
11653
  pageSize?:
10747
11654
  number;
10748
- /** The standard list page token. */
11655
+ /**
11656
+ * 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.
11657
+ * The values of other method parameters should be identical to those in the previous call.
11658
+ */
10749
11659
  pageToken?:
10750
11660
  string;
11661
+ /**
11662
+ * Required. The resource to which the listed queries belong. "projects/[PROJECT_ID]/locations/[LOCATION_ID]" "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]"
11663
+ * "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]" "folders/[FOLDER_ID]/locations/[LOCATION_ID]" For example: "projects/my-project/locations/us-central1" Note: The
11664
+ * locations portion of the resource must be specified. To get a list of all saved queries, a wildcard character - can be used for LOCATION_ID, for example:
11665
+ * "projects/my-project/locations/-"
11666
+ */
11667
+ parent:
11668
+ string;
10751
11669
  /** Returns response with indentations and line breaks. */
10752
11670
  prettyPrint?:
10753
11671
  boolean;
@@ -10760,7 +11678,7 @@ declare namespace gapi.client {
10760
11678
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
10761
11679
  uploadType?:
10762
11680
  string;
10763
- }): Request<ListOperationsResponse>;
11681
+ }): Request<ListSavedQueriesResponse>;
10764
11682
  }
10765
11683
  interface LocationsResource {
10766
11684
  /** Gets information about a location. */
@@ -10857,6 +11775,10 @@ declare namespace gapi.client {
10857
11775
  BucketsResource;
10858
11776
  operations:
10859
11777
  OperationsResource;
11778
+ recentQueries:
11779
+ RecentQueriesResource;
11780
+ savedQueries:
11781
+ SavedQueriesResource;
10860
11782
  }
10861
11783
  interface LogsResource {
10862
11784
  /**
@@ -13584,6 +14506,267 @@ declare namespace gapi.client {
13584
14506
  string;
13585
14507
  }): Request<ListOperationsResponse>;
13586
14508
  }
14509
+ interface RecentQueriesResource {
14510
+ /** Lists the RecentQueries that were created by the user making the request. */
14511
+ list(request?: {
14512
+ /** V1 error format. */
14513
+ "$.xgafv"?:
14514
+ string;
14515
+ /** OAuth access token. */
14516
+ access_token?:
14517
+ string;
14518
+ /** Data format for response. */
14519
+ alt?:
14520
+ string;
14521
+ /** JSONP */
14522
+ callback?:
14523
+ string;
14524
+ /** Selector specifying which fields to include in a partial response. */
14525
+ fields?:
14526
+ string;
14527
+ /** 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. */
14528
+ key?:
14529
+ string;
14530
+ /** OAuth 2.0 token for the current user. */
14531
+ oauth_token?:
14532
+ string;
14533
+ /**
14534
+ * 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
14535
+ * might be available.
14536
+ */
14537
+ pageSize?:
14538
+ number;
14539
+ /**
14540
+ * 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.
14541
+ * The values of other method parameters should be identical to those in the previous call.
14542
+ */
14543
+ pageToken?:
14544
+ string;
14545
+ /**
14546
+ * Required. The resource to which the listed queries belong. "projects/[PROJECT_ID]/locations/[LOCATION_ID]" "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]"
14547
+ * "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]" "folders/[FOLDER_ID]/locations/[LOCATION_ID]" For example:projects/my-project/locations/us-central1Note: The
14548
+ * location portion of the resource must be specified, but supplying the character - in place of LOCATION_ID will return all recent queries.
14549
+ */
14550
+ parent:
14551
+ string;
14552
+ /** Returns response with indentations and line breaks. */
14553
+ prettyPrint?:
14554
+ boolean;
14555
+ /** 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. */
14556
+ quotaUser?:
14557
+ string;
14558
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
14559
+ upload_protocol?:
14560
+ string;
14561
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
14562
+ uploadType?:
14563
+ string;
14564
+ }): Request<ListRecentQueriesResponse>;
14565
+ }
14566
+ interface SavedQueriesResource {
14567
+ /** Creates a new SavedQuery for the user making the request. */
14568
+ create(request: {
14569
+ /** V1 error format. */
14570
+ "$.xgafv"?:
14571
+ string;
14572
+ /** OAuth access token. */
14573
+ access_token?:
14574
+ string;
14575
+ /** Data format for response. */
14576
+ alt?:
14577
+ string;
14578
+ /** JSONP */
14579
+ callback?:
14580
+ string;
14581
+ /** Selector specifying which fields to include in a partial response. */
14582
+ fields?:
14583
+ string;
14584
+ /** 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. */
14585
+ key?:
14586
+ string;
14587
+ /** OAuth 2.0 token for the current user. */
14588
+ oauth_token?:
14589
+ string;
14590
+ /**
14591
+ * Required. The parent resource in which to create the saved query: "projects/[PROJECT_ID]/locations/[LOCATION_ID]" "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]"
14592
+ * "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]" "folders/[FOLDER_ID]/locations/[LOCATION_ID]" For example: "projects/my-project/locations/global"
14593
+ * "organizations/123456789/locations/us-central1"
14594
+ */
14595
+ parent:
14596
+ string;
14597
+ /** Returns response with indentations and line breaks. */
14598
+ prettyPrint?:
14599
+ boolean;
14600
+ /** 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. */
14601
+ quotaUser?:
14602
+ string;
14603
+ /**
14604
+ * Optional. The ID to use for the saved query, which will become the final component of the saved query's resource name.If the saved_query_id is not provided, the system will
14605
+ * generate an alphanumeric ID.The saved_query_id is limited to 100 characters and can include only the following characters: upper and lower-case alphanumeric characters,
14606
+ * underscores, hyphens, and periods. First character has to be alphanumeric.
14607
+ */
14608
+ savedQueryId?:
14609
+ string;
14610
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
14611
+ upload_protocol?:
14612
+ string;
14613
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
14614
+ uploadType?:
14615
+ string;
14616
+ /** Request body */
14617
+ resource:
14618
+ SavedQuery;
14619
+ }): Request<SavedQuery>;
14620
+ create(request: {
14621
+ /** V1 error format. */
14622
+ "$.xgafv"?:
14623
+ string;
14624
+ /** OAuth access token. */
14625
+ access_token?:
14626
+ string;
14627
+ /** Data format for response. */
14628
+ alt?:
14629
+ string;
14630
+ /** JSONP */
14631
+ callback?:
14632
+ string;
14633
+ /** Selector specifying which fields to include in a partial response. */
14634
+ fields?:
14635
+ string;
14636
+ /** 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. */
14637
+ key?:
14638
+ string;
14639
+ /** OAuth 2.0 token for the current user. */
14640
+ oauth_token?:
14641
+ string;
14642
+ /**
14643
+ * Required. The parent resource in which to create the saved query: "projects/[PROJECT_ID]/locations/[LOCATION_ID]" "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]"
14644
+ * "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]" "folders/[FOLDER_ID]/locations/[LOCATION_ID]" For example: "projects/my-project/locations/global"
14645
+ * "organizations/123456789/locations/us-central1"
14646
+ */
14647
+ parent:
14648
+ string;
14649
+ /** Returns response with indentations and line breaks. */
14650
+ prettyPrint?:
14651
+ boolean;
14652
+ /** 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. */
14653
+ quotaUser?:
14654
+ string;
14655
+ /**
14656
+ * Optional. The ID to use for the saved query, which will become the final component of the saved query's resource name.If the saved_query_id is not provided, the system will
14657
+ * generate an alphanumeric ID.The saved_query_id is limited to 100 characters and can include only the following characters: upper and lower-case alphanumeric characters,
14658
+ * underscores, hyphens, and periods. First character has to be alphanumeric.
14659
+ */
14660
+ savedQueryId?:
14661
+ string;
14662
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
14663
+ upload_protocol?:
14664
+ string;
14665
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
14666
+ uploadType?:
14667
+ string;
14668
+ },
14669
+ body: SavedQuery): Request<SavedQuery>;
14670
+ /** Deletes an existing SavedQuery that was created by the user making the request. */
14671
+ delete(request?: {
14672
+ /** V1 error format. */
14673
+ "$.xgafv"?:
14674
+ string;
14675
+ /** OAuth access token. */
14676
+ access_token?:
14677
+ string;
14678
+ /** Data format for response. */
14679
+ alt?:
14680
+ string;
14681
+ /** JSONP */
14682
+ callback?:
14683
+ string;
14684
+ /** Selector specifying which fields to include in a partial response. */
14685
+ fields?:
14686
+ string;
14687
+ /** 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. */
14688
+ key?:
14689
+ string;
14690
+ /**
14691
+ * Required. The full resource name of the saved query to delete. "projects/[PROJECT_ID]/locations/[LOCATION_ID]/savedQueries/[QUERY_ID]"
14692
+ * "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/savedQueries/[QUERY_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/savedQueries/[QUERY_ID]"
14693
+ * "folders/[FOLDER_ID]/locations/[LOCATION_ID]/savedQueries/[QUERY_ID]" For example: "projects/my-project/locations/global/savedQueries/my-saved-query"
14694
+ */
14695
+ name:
14696
+ string;
14697
+ /** OAuth 2.0 token for the current user. */
14698
+ oauth_token?:
14699
+ string;
14700
+ /** Returns response with indentations and line breaks. */
14701
+ prettyPrint?:
14702
+ boolean;
14703
+ /** 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. */
14704
+ quotaUser?:
14705
+ string;
14706
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
14707
+ upload_protocol?:
14708
+ string;
14709
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
14710
+ uploadType?:
14711
+ string;
14712
+ }): Request<{}>;
14713
+ /** Lists the SavedQueries that were created by the user making the request. */
14714
+ list(request?: {
14715
+ /** V1 error format. */
14716
+ "$.xgafv"?:
14717
+ string;
14718
+ /** OAuth access token. */
14719
+ access_token?:
14720
+ string;
14721
+ /** Data format for response. */
14722
+ alt?:
14723
+ string;
14724
+ /** JSONP */
14725
+ callback?:
14726
+ string;
14727
+ /** Selector specifying which fields to include in a partial response. */
14728
+ fields?:
14729
+ string;
14730
+ /** 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. */
14731
+ key?:
14732
+ string;
14733
+ /** OAuth 2.0 token for the current user. */
14734
+ oauth_token?:
14735
+ string;
14736
+ /**
14737
+ * 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
14738
+ * might be available.
14739
+ */
14740
+ pageSize?:
14741
+ number;
14742
+ /**
14743
+ * 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.
14744
+ * The values of other method parameters should be identical to those in the previous call.
14745
+ */
14746
+ pageToken?:
14747
+ string;
14748
+ /**
14749
+ * Required. The resource to which the listed queries belong. "projects/[PROJECT_ID]/locations/[LOCATION_ID]" "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]"
14750
+ * "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]" "folders/[FOLDER_ID]/locations/[LOCATION_ID]" For example: "projects/my-project/locations/us-central1" Note: The
14751
+ * locations portion of the resource must be specified. To get a list of all saved queries, a wildcard character - can be used for LOCATION_ID, for example:
14752
+ * "projects/my-project/locations/-"
14753
+ */
14754
+ parent:
14755
+ string;
14756
+ /** Returns response with indentations and line breaks. */
14757
+ prettyPrint?:
14758
+ boolean;
14759
+ /** 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. */
14760
+ quotaUser?:
14761
+ string;
14762
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
14763
+ upload_protocol?:
14764
+ string;
14765
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
14766
+ uploadType?:
14767
+ string;
14768
+ }): Request<ListSavedQueriesResponse>;
14769
+ }
13587
14770
  interface LocationsResource {
13588
14771
  /** Gets information about a location. */
13589
14772
  get(request?: {
@@ -13679,6 +14862,10 @@ declare namespace gapi.client {
13679
14862
  BucketsResource;
13680
14863
  operations:
13681
14864
  OperationsResource;
14865
+ recentQueries:
14866
+ RecentQueriesResource;
14867
+ savedQueries:
14868
+ SavedQueriesResource;
13682
14869
  }
13683
14870
  interface LogsResource {
13684
14871
  /**