google-apis-logging_v2 0.57.0 → 0.58.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1251,6 +1251,183 @@ module Google
1251
1251
  execute_or_queue_command(command, &block)
1252
1252
  end
1253
1253
 
1254
+ # Lists the RecentQueries that were created by the user making the request.
1255
+ # @param [String] parent
1256
+ # Required. The resource to which the listed queries belong. "projects/[
1257
+ # PROJECT_ID]/locations/[LOCATION_ID]" "organizations/[ORGANIZATION_ID]/
1258
+ # locations/[LOCATION_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[
1259
+ # LOCATION_ID]" "folders/[FOLDER_ID]/locations/[LOCATION_ID]" For example:
1260
+ # projects/my-project/locations/us-central1Note: The location portion of the
1261
+ # resource must be specified, but supplying the character - in place of
1262
+ # LOCATION_ID will return all recent queries.
1263
+ # @param [Fixnum] page_size
1264
+ # Optional. The maximum number of results to return from this request. Non-
1265
+ # positive values are ignored. The presence of nextPageToken in the response
1266
+ # indicates that more results might be available.
1267
+ # @param [String] page_token
1268
+ # Optional. If present, then retrieve the next batch of results from the
1269
+ # preceding call to this method. pageToken must be the value of nextPageToken
1270
+ # from the previous response. The values of other method parameters should be
1271
+ # identical to those in the previous call.
1272
+ # @param [String] fields
1273
+ # Selector specifying which fields to include in a partial response.
1274
+ # @param [String] quota_user
1275
+ # Available to use for quota purposes for server-side applications. Can be any
1276
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1277
+ # @param [Google::Apis::RequestOptions] options
1278
+ # Request-specific options
1279
+ #
1280
+ # @yield [result, err] Result & error if block supplied
1281
+ # @yieldparam result [Google::Apis::LoggingV2::ListRecentQueriesResponse] parsed result object
1282
+ # @yieldparam err [StandardError] error object if request failed
1283
+ #
1284
+ # @return [Google::Apis::LoggingV2::ListRecentQueriesResponse]
1285
+ #
1286
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1287
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1288
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1289
+ def list_billing_account_location_recent_queries(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
1290
+ command = make_simple_command(:get, 'v2/{+parent}/recentQueries', options)
1291
+ command.response_representation = Google::Apis::LoggingV2::ListRecentQueriesResponse::Representation
1292
+ command.response_class = Google::Apis::LoggingV2::ListRecentQueriesResponse
1293
+ command.params['parent'] = parent unless parent.nil?
1294
+ command.query['pageSize'] = page_size unless page_size.nil?
1295
+ command.query['pageToken'] = page_token unless page_token.nil?
1296
+ command.query['fields'] = fields unless fields.nil?
1297
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1298
+ execute_or_queue_command(command, &block)
1299
+ end
1300
+
1301
+ # Creates a new SavedQuery for the user making the request.
1302
+ # @param [String] parent
1303
+ # Required. The parent resource in which to create the saved query: "projects/[
1304
+ # PROJECT_ID]/locations/[LOCATION_ID]" "organizations/[ORGANIZATION_ID]/
1305
+ # locations/[LOCATION_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[
1306
+ # LOCATION_ID]" "folders/[FOLDER_ID]/locations/[LOCATION_ID]" For example: "
1307
+ # projects/my-project/locations/global" "organizations/123456789/locations/us-
1308
+ # central1"
1309
+ # @param [Google::Apis::LoggingV2::SavedQuery] saved_query_object
1310
+ # @param [String] saved_query_id
1311
+ # Optional. The ID to use for the saved query, which will become the final
1312
+ # component of the saved query's resource name.If the saved_query_id is not
1313
+ # provided, the system will generate an alphanumeric ID.The saved_query_id is
1314
+ # limited to 100 characters and can include only the following characters: upper
1315
+ # and lower-case alphanumeric characters, underscores, hyphens, and periods.
1316
+ # First character has to be alphanumeric.
1317
+ # @param [String] fields
1318
+ # Selector specifying which fields to include in a partial response.
1319
+ # @param [String] quota_user
1320
+ # Available to use for quota purposes for server-side applications. Can be any
1321
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1322
+ # @param [Google::Apis::RequestOptions] options
1323
+ # Request-specific options
1324
+ #
1325
+ # @yield [result, err] Result & error if block supplied
1326
+ # @yieldparam result [Google::Apis::LoggingV2::SavedQuery] parsed result object
1327
+ # @yieldparam err [StandardError] error object if request failed
1328
+ #
1329
+ # @return [Google::Apis::LoggingV2::SavedQuery]
1330
+ #
1331
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1332
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1333
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1334
+ def create_billing_account_location_saved_query(parent, saved_query_object = nil, saved_query_id: nil, fields: nil, quota_user: nil, options: nil, &block)
1335
+ command = make_simple_command(:post, 'v2/{+parent}/savedQueries', options)
1336
+ command.request_representation = Google::Apis::LoggingV2::SavedQuery::Representation
1337
+ command.request_object = saved_query_object
1338
+ command.response_representation = Google::Apis::LoggingV2::SavedQuery::Representation
1339
+ command.response_class = Google::Apis::LoggingV2::SavedQuery
1340
+ command.params['parent'] = parent unless parent.nil?
1341
+ command.query['savedQueryId'] = saved_query_id unless saved_query_id.nil?
1342
+ command.query['fields'] = fields unless fields.nil?
1343
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1344
+ execute_or_queue_command(command, &block)
1345
+ end
1346
+
1347
+ # Deletes an existing SavedQuery that was created by the user making the request.
1348
+ # @param [String] name
1349
+ # Required. The full resource name of the saved query to delete. "projects/[
1350
+ # PROJECT_ID]/locations/[LOCATION_ID]/savedQueries/[QUERY_ID]" "organizations/[
1351
+ # ORGANIZATION_ID]/locations/[LOCATION_ID]/savedQueries/[QUERY_ID]" "
1352
+ # billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/savedQueries/[
1353
+ # QUERY_ID]" "folders/[FOLDER_ID]/locations/[LOCATION_ID]/savedQueries/[QUERY_ID]
1354
+ # " For example: "projects/my-project/locations/global/savedQueries/my-saved-
1355
+ # query"
1356
+ # @param [String] fields
1357
+ # Selector specifying which fields to include in a partial response.
1358
+ # @param [String] quota_user
1359
+ # Available to use for quota purposes for server-side applications. Can be any
1360
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1361
+ # @param [Google::Apis::RequestOptions] options
1362
+ # Request-specific options
1363
+ #
1364
+ # @yield [result, err] Result & error if block supplied
1365
+ # @yieldparam result [Google::Apis::LoggingV2::Empty] parsed result object
1366
+ # @yieldparam err [StandardError] error object if request failed
1367
+ #
1368
+ # @return [Google::Apis::LoggingV2::Empty]
1369
+ #
1370
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1371
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1372
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1373
+ def delete_billing_account_location_saved_query(name, fields: nil, quota_user: nil, options: nil, &block)
1374
+ command = make_simple_command(:delete, 'v2/{+name}', options)
1375
+ command.response_representation = Google::Apis::LoggingV2::Empty::Representation
1376
+ command.response_class = Google::Apis::LoggingV2::Empty
1377
+ command.params['name'] = name unless name.nil?
1378
+ command.query['fields'] = fields unless fields.nil?
1379
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1380
+ execute_or_queue_command(command, &block)
1381
+ end
1382
+
1383
+ # Lists the SavedQueries that were created by the user making the request.
1384
+ # @param [String] parent
1385
+ # Required. The resource to which the listed queries belong. "projects/[
1386
+ # PROJECT_ID]/locations/[LOCATION_ID]" "organizations/[ORGANIZATION_ID]/
1387
+ # locations/[LOCATION_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[
1388
+ # LOCATION_ID]" "folders/[FOLDER_ID]/locations/[LOCATION_ID]" For example: "
1389
+ # projects/my-project/locations/us-central1" Note: The locations portion of the
1390
+ # resource must be specified. To get a list of all saved queries, a wildcard
1391
+ # character - can be used for LOCATION_ID, for example: "projects/my-project/
1392
+ # locations/-"
1393
+ # @param [Fixnum] page_size
1394
+ # Optional. The maximum number of results to return from this request.Non-
1395
+ # positive values are ignored. The presence of nextPageToken in the response
1396
+ # indicates that more results might be available.
1397
+ # @param [String] page_token
1398
+ # Optional. If present, then retrieve the next batch of results from the
1399
+ # preceding call to this method. pageToken must be the value of nextPageToken
1400
+ # from the previous response. The values of other method parameters should be
1401
+ # identical to those in the previous call.
1402
+ # @param [String] fields
1403
+ # Selector specifying which fields to include in a partial response.
1404
+ # @param [String] quota_user
1405
+ # Available to use for quota purposes for server-side applications. Can be any
1406
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1407
+ # @param [Google::Apis::RequestOptions] options
1408
+ # Request-specific options
1409
+ #
1410
+ # @yield [result, err] Result & error if block supplied
1411
+ # @yieldparam result [Google::Apis::LoggingV2::ListSavedQueriesResponse] parsed result object
1412
+ # @yieldparam err [StandardError] error object if request failed
1413
+ #
1414
+ # @return [Google::Apis::LoggingV2::ListSavedQueriesResponse]
1415
+ #
1416
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1417
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1418
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1419
+ def list_billing_account_location_saved_queries(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
1420
+ command = make_simple_command(:get, 'v2/{+parent}/savedQueries', options)
1421
+ command.response_representation = Google::Apis::LoggingV2::ListSavedQueriesResponse::Representation
1422
+ command.response_class = Google::Apis::LoggingV2::ListSavedQueriesResponse
1423
+ command.params['parent'] = parent unless parent.nil?
1424
+ command.query['pageSize'] = page_size unless page_size.nil?
1425
+ command.query['pageToken'] = page_token unless page_token.nil?
1426
+ command.query['fields'] = fields unless fields.nil?
1427
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1428
+ execute_or_queue_command(command, &block)
1429
+ end
1430
+
1254
1431
  # Deletes all the log entries in a log for the _Default Log Bucket. The log
1255
1432
  # reappears if it receives new entries. Log entries written shortly before the
1256
1433
  # delete operation might not be deleted. Entries received after the delete
@@ -3224,6 +3401,183 @@ module Google
3224
3401
  execute_or_queue_command(command, &block)
3225
3402
  end
3226
3403
 
3404
+ # Lists the RecentQueries that were created by the user making the request.
3405
+ # @param [String] parent
3406
+ # Required. The resource to which the listed queries belong. "projects/[
3407
+ # PROJECT_ID]/locations/[LOCATION_ID]" "organizations/[ORGANIZATION_ID]/
3408
+ # locations/[LOCATION_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[
3409
+ # LOCATION_ID]" "folders/[FOLDER_ID]/locations/[LOCATION_ID]" For example:
3410
+ # projects/my-project/locations/us-central1Note: The location portion of the
3411
+ # resource must be specified, but supplying the character - in place of
3412
+ # LOCATION_ID will return all recent queries.
3413
+ # @param [Fixnum] page_size
3414
+ # Optional. The maximum number of results to return from this request. Non-
3415
+ # positive values are ignored. The presence of nextPageToken in the response
3416
+ # indicates that more results might be available.
3417
+ # @param [String] page_token
3418
+ # Optional. If present, then retrieve the next batch of results from the
3419
+ # preceding call to this method. pageToken must be the value of nextPageToken
3420
+ # from the previous response. The values of other method parameters should be
3421
+ # identical to those in the previous call.
3422
+ # @param [String] fields
3423
+ # Selector specifying which fields to include in a partial response.
3424
+ # @param [String] quota_user
3425
+ # Available to use for quota purposes for server-side applications. Can be any
3426
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3427
+ # @param [Google::Apis::RequestOptions] options
3428
+ # Request-specific options
3429
+ #
3430
+ # @yield [result, err] Result & error if block supplied
3431
+ # @yieldparam result [Google::Apis::LoggingV2::ListRecentQueriesResponse] parsed result object
3432
+ # @yieldparam err [StandardError] error object if request failed
3433
+ #
3434
+ # @return [Google::Apis::LoggingV2::ListRecentQueriesResponse]
3435
+ #
3436
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3437
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3438
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3439
+ def list_folder_location_recent_queries(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
3440
+ command = make_simple_command(:get, 'v2/{+parent}/recentQueries', options)
3441
+ command.response_representation = Google::Apis::LoggingV2::ListRecentQueriesResponse::Representation
3442
+ command.response_class = Google::Apis::LoggingV2::ListRecentQueriesResponse
3443
+ command.params['parent'] = parent unless parent.nil?
3444
+ command.query['pageSize'] = page_size unless page_size.nil?
3445
+ command.query['pageToken'] = page_token unless page_token.nil?
3446
+ command.query['fields'] = fields unless fields.nil?
3447
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3448
+ execute_or_queue_command(command, &block)
3449
+ end
3450
+
3451
+ # Creates a new SavedQuery for the user making the request.
3452
+ # @param [String] parent
3453
+ # Required. The parent resource in which to create the saved query: "projects/[
3454
+ # PROJECT_ID]/locations/[LOCATION_ID]" "organizations/[ORGANIZATION_ID]/
3455
+ # locations/[LOCATION_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[
3456
+ # LOCATION_ID]" "folders/[FOLDER_ID]/locations/[LOCATION_ID]" For example: "
3457
+ # projects/my-project/locations/global" "organizations/123456789/locations/us-
3458
+ # central1"
3459
+ # @param [Google::Apis::LoggingV2::SavedQuery] saved_query_object
3460
+ # @param [String] saved_query_id
3461
+ # Optional. The ID to use for the saved query, which will become the final
3462
+ # component of the saved query's resource name.If the saved_query_id is not
3463
+ # provided, the system will generate an alphanumeric ID.The saved_query_id is
3464
+ # limited to 100 characters and can include only the following characters: upper
3465
+ # and lower-case alphanumeric characters, underscores, hyphens, and periods.
3466
+ # First character has to be alphanumeric.
3467
+ # @param [String] fields
3468
+ # Selector specifying which fields to include in a partial response.
3469
+ # @param [String] quota_user
3470
+ # Available to use for quota purposes for server-side applications. Can be any
3471
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3472
+ # @param [Google::Apis::RequestOptions] options
3473
+ # Request-specific options
3474
+ #
3475
+ # @yield [result, err] Result & error if block supplied
3476
+ # @yieldparam result [Google::Apis::LoggingV2::SavedQuery] parsed result object
3477
+ # @yieldparam err [StandardError] error object if request failed
3478
+ #
3479
+ # @return [Google::Apis::LoggingV2::SavedQuery]
3480
+ #
3481
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3482
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3483
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3484
+ def create_folder_location_saved_query(parent, saved_query_object = nil, saved_query_id: nil, fields: nil, quota_user: nil, options: nil, &block)
3485
+ command = make_simple_command(:post, 'v2/{+parent}/savedQueries', options)
3486
+ command.request_representation = Google::Apis::LoggingV2::SavedQuery::Representation
3487
+ command.request_object = saved_query_object
3488
+ command.response_representation = Google::Apis::LoggingV2::SavedQuery::Representation
3489
+ command.response_class = Google::Apis::LoggingV2::SavedQuery
3490
+ command.params['parent'] = parent unless parent.nil?
3491
+ command.query['savedQueryId'] = saved_query_id unless saved_query_id.nil?
3492
+ command.query['fields'] = fields unless fields.nil?
3493
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3494
+ execute_or_queue_command(command, &block)
3495
+ end
3496
+
3497
+ # Deletes an existing SavedQuery that was created by the user making the request.
3498
+ # @param [String] name
3499
+ # Required. The full resource name of the saved query to delete. "projects/[
3500
+ # PROJECT_ID]/locations/[LOCATION_ID]/savedQueries/[QUERY_ID]" "organizations/[
3501
+ # ORGANIZATION_ID]/locations/[LOCATION_ID]/savedQueries/[QUERY_ID]" "
3502
+ # billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/savedQueries/[
3503
+ # QUERY_ID]" "folders/[FOLDER_ID]/locations/[LOCATION_ID]/savedQueries/[QUERY_ID]
3504
+ # " For example: "projects/my-project/locations/global/savedQueries/my-saved-
3505
+ # query"
3506
+ # @param [String] fields
3507
+ # Selector specifying which fields to include in a partial response.
3508
+ # @param [String] quota_user
3509
+ # Available to use for quota purposes for server-side applications. Can be any
3510
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3511
+ # @param [Google::Apis::RequestOptions] options
3512
+ # Request-specific options
3513
+ #
3514
+ # @yield [result, err] Result & error if block supplied
3515
+ # @yieldparam result [Google::Apis::LoggingV2::Empty] parsed result object
3516
+ # @yieldparam err [StandardError] error object if request failed
3517
+ #
3518
+ # @return [Google::Apis::LoggingV2::Empty]
3519
+ #
3520
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3521
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3522
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3523
+ def delete_folder_location_saved_query(name, fields: nil, quota_user: nil, options: nil, &block)
3524
+ command = make_simple_command(:delete, 'v2/{+name}', options)
3525
+ command.response_representation = Google::Apis::LoggingV2::Empty::Representation
3526
+ command.response_class = Google::Apis::LoggingV2::Empty
3527
+ command.params['name'] = name unless name.nil?
3528
+ command.query['fields'] = fields unless fields.nil?
3529
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3530
+ execute_or_queue_command(command, &block)
3531
+ end
3532
+
3533
+ # Lists the SavedQueries that were created by the user making the request.
3534
+ # @param [String] parent
3535
+ # Required. The resource to which the listed queries belong. "projects/[
3536
+ # PROJECT_ID]/locations/[LOCATION_ID]" "organizations/[ORGANIZATION_ID]/
3537
+ # locations/[LOCATION_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[
3538
+ # LOCATION_ID]" "folders/[FOLDER_ID]/locations/[LOCATION_ID]" For example: "
3539
+ # projects/my-project/locations/us-central1" Note: The locations portion of the
3540
+ # resource must be specified. To get a list of all saved queries, a wildcard
3541
+ # character - can be used for LOCATION_ID, for example: "projects/my-project/
3542
+ # locations/-"
3543
+ # @param [Fixnum] page_size
3544
+ # Optional. The maximum number of results to return from this request.Non-
3545
+ # positive values are ignored. The presence of nextPageToken in the response
3546
+ # indicates that more results might be available.
3547
+ # @param [String] page_token
3548
+ # Optional. If present, then retrieve the next batch of results from the
3549
+ # preceding call to this method. pageToken must be the value of nextPageToken
3550
+ # from the previous response. The values of other method parameters should be
3551
+ # identical to those in the previous call.
3552
+ # @param [String] fields
3553
+ # Selector specifying which fields to include in a partial response.
3554
+ # @param [String] quota_user
3555
+ # Available to use for quota purposes for server-side applications. Can be any
3556
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3557
+ # @param [Google::Apis::RequestOptions] options
3558
+ # Request-specific options
3559
+ #
3560
+ # @yield [result, err] Result & error if block supplied
3561
+ # @yieldparam result [Google::Apis::LoggingV2::ListSavedQueriesResponse] parsed result object
3562
+ # @yieldparam err [StandardError] error object if request failed
3563
+ #
3564
+ # @return [Google::Apis::LoggingV2::ListSavedQueriesResponse]
3565
+ #
3566
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3567
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3568
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3569
+ def list_folder_location_saved_queries(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
3570
+ command = make_simple_command(:get, 'v2/{+parent}/savedQueries', options)
3571
+ command.response_representation = Google::Apis::LoggingV2::ListSavedQueriesResponse::Representation
3572
+ command.response_class = Google::Apis::LoggingV2::ListSavedQueriesResponse
3573
+ command.params['parent'] = parent unless parent.nil?
3574
+ command.query['pageSize'] = page_size unless page_size.nil?
3575
+ command.query['pageToken'] = page_token unless page_token.nil?
3576
+ command.query['fields'] = fields unless fields.nil?
3577
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3578
+ execute_or_queue_command(command, &block)
3579
+ end
3580
+
3227
3581
  # Deletes all the log entries in a log for the _Default Log Bucket. The log
3228
3582
  # reappears if it receives new entries. Log entries written shortly before the
3229
3583
  # delete operation might not be deleted. Entries received after the delete
@@ -5928,6 +6282,183 @@ module Google
5928
6282
  execute_or_queue_command(command, &block)
5929
6283
  end
5930
6284
 
6285
+ # Lists the RecentQueries that were created by the user making the request.
6286
+ # @param [String] parent
6287
+ # Required. The resource to which the listed queries belong. "projects/[
6288
+ # PROJECT_ID]/locations/[LOCATION_ID]" "organizations/[ORGANIZATION_ID]/
6289
+ # locations/[LOCATION_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[
6290
+ # LOCATION_ID]" "folders/[FOLDER_ID]/locations/[LOCATION_ID]" For example:
6291
+ # projects/my-project/locations/us-central1Note: The location portion of the
6292
+ # resource must be specified, but supplying the character - in place of
6293
+ # LOCATION_ID will return all recent queries.
6294
+ # @param [Fixnum] page_size
6295
+ # Optional. The maximum number of results to return from this request. Non-
6296
+ # positive values are ignored. The presence of nextPageToken in the response
6297
+ # indicates that more results might be available.
6298
+ # @param [String] page_token
6299
+ # Optional. If present, then retrieve the next batch of results from the
6300
+ # preceding call to this method. pageToken must be the value of nextPageToken
6301
+ # from the previous response. The values of other method parameters should be
6302
+ # identical to those in the previous call.
6303
+ # @param [String] fields
6304
+ # Selector specifying which fields to include in a partial response.
6305
+ # @param [String] quota_user
6306
+ # Available to use for quota purposes for server-side applications. Can be any
6307
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
6308
+ # @param [Google::Apis::RequestOptions] options
6309
+ # Request-specific options
6310
+ #
6311
+ # @yield [result, err] Result & error if block supplied
6312
+ # @yieldparam result [Google::Apis::LoggingV2::ListRecentQueriesResponse] parsed result object
6313
+ # @yieldparam err [StandardError] error object if request failed
6314
+ #
6315
+ # @return [Google::Apis::LoggingV2::ListRecentQueriesResponse]
6316
+ #
6317
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
6318
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
6319
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
6320
+ def list_organization_location_recent_queries(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
6321
+ command = make_simple_command(:get, 'v2/{+parent}/recentQueries', options)
6322
+ command.response_representation = Google::Apis::LoggingV2::ListRecentQueriesResponse::Representation
6323
+ command.response_class = Google::Apis::LoggingV2::ListRecentQueriesResponse
6324
+ command.params['parent'] = parent unless parent.nil?
6325
+ command.query['pageSize'] = page_size unless page_size.nil?
6326
+ command.query['pageToken'] = page_token unless page_token.nil?
6327
+ command.query['fields'] = fields unless fields.nil?
6328
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
6329
+ execute_or_queue_command(command, &block)
6330
+ end
6331
+
6332
+ # Creates a new SavedQuery for the user making the request.
6333
+ # @param [String] parent
6334
+ # Required. The parent resource in which to create the saved query: "projects/[
6335
+ # PROJECT_ID]/locations/[LOCATION_ID]" "organizations/[ORGANIZATION_ID]/
6336
+ # locations/[LOCATION_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[
6337
+ # LOCATION_ID]" "folders/[FOLDER_ID]/locations/[LOCATION_ID]" For example: "
6338
+ # projects/my-project/locations/global" "organizations/123456789/locations/us-
6339
+ # central1"
6340
+ # @param [Google::Apis::LoggingV2::SavedQuery] saved_query_object
6341
+ # @param [String] saved_query_id
6342
+ # Optional. The ID to use for the saved query, which will become the final
6343
+ # component of the saved query's resource name.If the saved_query_id is not
6344
+ # provided, the system will generate an alphanumeric ID.The saved_query_id is
6345
+ # limited to 100 characters and can include only the following characters: upper
6346
+ # and lower-case alphanumeric characters, underscores, hyphens, and periods.
6347
+ # First character has to be alphanumeric.
6348
+ # @param [String] fields
6349
+ # Selector specifying which fields to include in a partial response.
6350
+ # @param [String] quota_user
6351
+ # Available to use for quota purposes for server-side applications. Can be any
6352
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
6353
+ # @param [Google::Apis::RequestOptions] options
6354
+ # Request-specific options
6355
+ #
6356
+ # @yield [result, err] Result & error if block supplied
6357
+ # @yieldparam result [Google::Apis::LoggingV2::SavedQuery] parsed result object
6358
+ # @yieldparam err [StandardError] error object if request failed
6359
+ #
6360
+ # @return [Google::Apis::LoggingV2::SavedQuery]
6361
+ #
6362
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
6363
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
6364
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
6365
+ def create_organization_location_saved_query(parent, saved_query_object = nil, saved_query_id: nil, fields: nil, quota_user: nil, options: nil, &block)
6366
+ command = make_simple_command(:post, 'v2/{+parent}/savedQueries', options)
6367
+ command.request_representation = Google::Apis::LoggingV2::SavedQuery::Representation
6368
+ command.request_object = saved_query_object
6369
+ command.response_representation = Google::Apis::LoggingV2::SavedQuery::Representation
6370
+ command.response_class = Google::Apis::LoggingV2::SavedQuery
6371
+ command.params['parent'] = parent unless parent.nil?
6372
+ command.query['savedQueryId'] = saved_query_id unless saved_query_id.nil?
6373
+ command.query['fields'] = fields unless fields.nil?
6374
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
6375
+ execute_or_queue_command(command, &block)
6376
+ end
6377
+
6378
+ # Deletes an existing SavedQuery that was created by the user making the request.
6379
+ # @param [String] name
6380
+ # Required. The full resource name of the saved query to delete. "projects/[
6381
+ # PROJECT_ID]/locations/[LOCATION_ID]/savedQueries/[QUERY_ID]" "organizations/[
6382
+ # ORGANIZATION_ID]/locations/[LOCATION_ID]/savedQueries/[QUERY_ID]" "
6383
+ # billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/savedQueries/[
6384
+ # QUERY_ID]" "folders/[FOLDER_ID]/locations/[LOCATION_ID]/savedQueries/[QUERY_ID]
6385
+ # " For example: "projects/my-project/locations/global/savedQueries/my-saved-
6386
+ # query"
6387
+ # @param [String] fields
6388
+ # Selector specifying which fields to include in a partial response.
6389
+ # @param [String] quota_user
6390
+ # Available to use for quota purposes for server-side applications. Can be any
6391
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
6392
+ # @param [Google::Apis::RequestOptions] options
6393
+ # Request-specific options
6394
+ #
6395
+ # @yield [result, err] Result & error if block supplied
6396
+ # @yieldparam result [Google::Apis::LoggingV2::Empty] parsed result object
6397
+ # @yieldparam err [StandardError] error object if request failed
6398
+ #
6399
+ # @return [Google::Apis::LoggingV2::Empty]
6400
+ #
6401
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
6402
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
6403
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
6404
+ def delete_organization_location_saved_query(name, fields: nil, quota_user: nil, options: nil, &block)
6405
+ command = make_simple_command(:delete, 'v2/{+name}', options)
6406
+ command.response_representation = Google::Apis::LoggingV2::Empty::Representation
6407
+ command.response_class = Google::Apis::LoggingV2::Empty
6408
+ command.params['name'] = name unless name.nil?
6409
+ command.query['fields'] = fields unless fields.nil?
6410
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
6411
+ execute_or_queue_command(command, &block)
6412
+ end
6413
+
6414
+ # Lists the SavedQueries that were created by the user making the request.
6415
+ # @param [String] parent
6416
+ # Required. The resource to which the listed queries belong. "projects/[
6417
+ # PROJECT_ID]/locations/[LOCATION_ID]" "organizations/[ORGANIZATION_ID]/
6418
+ # locations/[LOCATION_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[
6419
+ # LOCATION_ID]" "folders/[FOLDER_ID]/locations/[LOCATION_ID]" For example: "
6420
+ # projects/my-project/locations/us-central1" Note: The locations portion of the
6421
+ # resource must be specified. To get a list of all saved queries, a wildcard
6422
+ # character - can be used for LOCATION_ID, for example: "projects/my-project/
6423
+ # locations/-"
6424
+ # @param [Fixnum] page_size
6425
+ # Optional. The maximum number of results to return from this request.Non-
6426
+ # positive values are ignored. The presence of nextPageToken in the response
6427
+ # indicates that more results might be available.
6428
+ # @param [String] page_token
6429
+ # Optional. If present, then retrieve the next batch of results from the
6430
+ # preceding call to this method. pageToken must be the value of nextPageToken
6431
+ # from the previous response. The values of other method parameters should be
6432
+ # identical to those in the previous call.
6433
+ # @param [String] fields
6434
+ # Selector specifying which fields to include in a partial response.
6435
+ # @param [String] quota_user
6436
+ # Available to use for quota purposes for server-side applications. Can be any
6437
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
6438
+ # @param [Google::Apis::RequestOptions] options
6439
+ # Request-specific options
6440
+ #
6441
+ # @yield [result, err] Result & error if block supplied
6442
+ # @yieldparam result [Google::Apis::LoggingV2::ListSavedQueriesResponse] parsed result object
6443
+ # @yieldparam err [StandardError] error object if request failed
6444
+ #
6445
+ # @return [Google::Apis::LoggingV2::ListSavedQueriesResponse]
6446
+ #
6447
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
6448
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
6449
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
6450
+ def list_organization_location_saved_queries(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
6451
+ command = make_simple_command(:get, 'v2/{+parent}/savedQueries', options)
6452
+ command.response_representation = Google::Apis::LoggingV2::ListSavedQueriesResponse::Representation
6453
+ command.response_class = Google::Apis::LoggingV2::ListSavedQueriesResponse
6454
+ command.params['parent'] = parent unless parent.nil?
6455
+ command.query['pageSize'] = page_size unless page_size.nil?
6456
+ command.query['pageToken'] = page_token unless page_token.nil?
6457
+ command.query['fields'] = fields unless fields.nil?
6458
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
6459
+ execute_or_queue_command(command, &block)
6460
+ end
6461
+
5931
6462
  # Deletes all the log entries in a log for the _Default Log Bucket. The log
5932
6463
  # reappears if it receives new entries. Log entries written shortly before the
5933
6464
  # delete operation might not be deleted. Entries received after the delete
@@ -7528,6 +8059,183 @@ module Google
7528
8059
  execute_or_queue_command(command, &block)
7529
8060
  end
7530
8061
 
8062
+ # Lists the RecentQueries that were created by the user making the request.
8063
+ # @param [String] parent
8064
+ # Required. The resource to which the listed queries belong. "projects/[
8065
+ # PROJECT_ID]/locations/[LOCATION_ID]" "organizations/[ORGANIZATION_ID]/
8066
+ # locations/[LOCATION_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[
8067
+ # LOCATION_ID]" "folders/[FOLDER_ID]/locations/[LOCATION_ID]" For example:
8068
+ # projects/my-project/locations/us-central1Note: The location portion of the
8069
+ # resource must be specified, but supplying the character - in place of
8070
+ # LOCATION_ID will return all recent queries.
8071
+ # @param [Fixnum] page_size
8072
+ # Optional. The maximum number of results to return from this request. Non-
8073
+ # positive values are ignored. The presence of nextPageToken in the response
8074
+ # indicates that more results might be available.
8075
+ # @param [String] page_token
8076
+ # Optional. If present, then retrieve the next batch of results from the
8077
+ # preceding call to this method. pageToken must be the value of nextPageToken
8078
+ # from the previous response. The values of other method parameters should be
8079
+ # identical to those in the previous call.
8080
+ # @param [String] fields
8081
+ # Selector specifying which fields to include in a partial response.
8082
+ # @param [String] quota_user
8083
+ # Available to use for quota purposes for server-side applications. Can be any
8084
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
8085
+ # @param [Google::Apis::RequestOptions] options
8086
+ # Request-specific options
8087
+ #
8088
+ # @yield [result, err] Result & error if block supplied
8089
+ # @yieldparam result [Google::Apis::LoggingV2::ListRecentQueriesResponse] parsed result object
8090
+ # @yieldparam err [StandardError] error object if request failed
8091
+ #
8092
+ # @return [Google::Apis::LoggingV2::ListRecentQueriesResponse]
8093
+ #
8094
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
8095
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
8096
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
8097
+ def list_project_location_recent_queries(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
8098
+ command = make_simple_command(:get, 'v2/{+parent}/recentQueries', options)
8099
+ command.response_representation = Google::Apis::LoggingV2::ListRecentQueriesResponse::Representation
8100
+ command.response_class = Google::Apis::LoggingV2::ListRecentQueriesResponse
8101
+ command.params['parent'] = parent unless parent.nil?
8102
+ command.query['pageSize'] = page_size unless page_size.nil?
8103
+ command.query['pageToken'] = page_token unless page_token.nil?
8104
+ command.query['fields'] = fields unless fields.nil?
8105
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
8106
+ execute_or_queue_command(command, &block)
8107
+ end
8108
+
8109
+ # Creates a new SavedQuery for the user making the request.
8110
+ # @param [String] parent
8111
+ # Required. The parent resource in which to create the saved query: "projects/[
8112
+ # PROJECT_ID]/locations/[LOCATION_ID]" "organizations/[ORGANIZATION_ID]/
8113
+ # locations/[LOCATION_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[
8114
+ # LOCATION_ID]" "folders/[FOLDER_ID]/locations/[LOCATION_ID]" For example: "
8115
+ # projects/my-project/locations/global" "organizations/123456789/locations/us-
8116
+ # central1"
8117
+ # @param [Google::Apis::LoggingV2::SavedQuery] saved_query_object
8118
+ # @param [String] saved_query_id
8119
+ # Optional. The ID to use for the saved query, which will become the final
8120
+ # component of the saved query's resource name.If the saved_query_id is not
8121
+ # provided, the system will generate an alphanumeric ID.The saved_query_id is
8122
+ # limited to 100 characters and can include only the following characters: upper
8123
+ # and lower-case alphanumeric characters, underscores, hyphens, and periods.
8124
+ # First character has to be alphanumeric.
8125
+ # @param [String] fields
8126
+ # Selector specifying which fields to include in a partial response.
8127
+ # @param [String] quota_user
8128
+ # Available to use for quota purposes for server-side applications. Can be any
8129
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
8130
+ # @param [Google::Apis::RequestOptions] options
8131
+ # Request-specific options
8132
+ #
8133
+ # @yield [result, err] Result & error if block supplied
8134
+ # @yieldparam result [Google::Apis::LoggingV2::SavedQuery] parsed result object
8135
+ # @yieldparam err [StandardError] error object if request failed
8136
+ #
8137
+ # @return [Google::Apis::LoggingV2::SavedQuery]
8138
+ #
8139
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
8140
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
8141
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
8142
+ def create_project_location_saved_query(parent, saved_query_object = nil, saved_query_id: nil, fields: nil, quota_user: nil, options: nil, &block)
8143
+ command = make_simple_command(:post, 'v2/{+parent}/savedQueries', options)
8144
+ command.request_representation = Google::Apis::LoggingV2::SavedQuery::Representation
8145
+ command.request_object = saved_query_object
8146
+ command.response_representation = Google::Apis::LoggingV2::SavedQuery::Representation
8147
+ command.response_class = Google::Apis::LoggingV2::SavedQuery
8148
+ command.params['parent'] = parent unless parent.nil?
8149
+ command.query['savedQueryId'] = saved_query_id unless saved_query_id.nil?
8150
+ command.query['fields'] = fields unless fields.nil?
8151
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
8152
+ execute_or_queue_command(command, &block)
8153
+ end
8154
+
8155
+ # Deletes an existing SavedQuery that was created by the user making the request.
8156
+ # @param [String] name
8157
+ # Required. The full resource name of the saved query to delete. "projects/[
8158
+ # PROJECT_ID]/locations/[LOCATION_ID]/savedQueries/[QUERY_ID]" "organizations/[
8159
+ # ORGANIZATION_ID]/locations/[LOCATION_ID]/savedQueries/[QUERY_ID]" "
8160
+ # billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/savedQueries/[
8161
+ # QUERY_ID]" "folders/[FOLDER_ID]/locations/[LOCATION_ID]/savedQueries/[QUERY_ID]
8162
+ # " For example: "projects/my-project/locations/global/savedQueries/my-saved-
8163
+ # query"
8164
+ # @param [String] fields
8165
+ # Selector specifying which fields to include in a partial response.
8166
+ # @param [String] quota_user
8167
+ # Available to use for quota purposes for server-side applications. Can be any
8168
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
8169
+ # @param [Google::Apis::RequestOptions] options
8170
+ # Request-specific options
8171
+ #
8172
+ # @yield [result, err] Result & error if block supplied
8173
+ # @yieldparam result [Google::Apis::LoggingV2::Empty] parsed result object
8174
+ # @yieldparam err [StandardError] error object if request failed
8175
+ #
8176
+ # @return [Google::Apis::LoggingV2::Empty]
8177
+ #
8178
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
8179
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
8180
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
8181
+ def delete_project_location_saved_query(name, fields: nil, quota_user: nil, options: nil, &block)
8182
+ command = make_simple_command(:delete, 'v2/{+name}', options)
8183
+ command.response_representation = Google::Apis::LoggingV2::Empty::Representation
8184
+ command.response_class = Google::Apis::LoggingV2::Empty
8185
+ command.params['name'] = name unless name.nil?
8186
+ command.query['fields'] = fields unless fields.nil?
8187
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
8188
+ execute_or_queue_command(command, &block)
8189
+ end
8190
+
8191
+ # Lists the SavedQueries that were created by the user making the request.
8192
+ # @param [String] parent
8193
+ # Required. The resource to which the listed queries belong. "projects/[
8194
+ # PROJECT_ID]/locations/[LOCATION_ID]" "organizations/[ORGANIZATION_ID]/
8195
+ # locations/[LOCATION_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[
8196
+ # LOCATION_ID]" "folders/[FOLDER_ID]/locations/[LOCATION_ID]" For example: "
8197
+ # projects/my-project/locations/us-central1" Note: The locations portion of the
8198
+ # resource must be specified. To get a list of all saved queries, a wildcard
8199
+ # character - can be used for LOCATION_ID, for example: "projects/my-project/
8200
+ # locations/-"
8201
+ # @param [Fixnum] page_size
8202
+ # Optional. The maximum number of results to return from this request.Non-
8203
+ # positive values are ignored. The presence of nextPageToken in the response
8204
+ # indicates that more results might be available.
8205
+ # @param [String] page_token
8206
+ # Optional. If present, then retrieve the next batch of results from the
8207
+ # preceding call to this method. pageToken must be the value of nextPageToken
8208
+ # from the previous response. The values of other method parameters should be
8209
+ # identical to those in the previous call.
8210
+ # @param [String] fields
8211
+ # Selector specifying which fields to include in a partial response.
8212
+ # @param [String] quota_user
8213
+ # Available to use for quota purposes for server-side applications. Can be any
8214
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
8215
+ # @param [Google::Apis::RequestOptions] options
8216
+ # Request-specific options
8217
+ #
8218
+ # @yield [result, err] Result & error if block supplied
8219
+ # @yieldparam result [Google::Apis::LoggingV2::ListSavedQueriesResponse] parsed result object
8220
+ # @yieldparam err [StandardError] error object if request failed
8221
+ #
8222
+ # @return [Google::Apis::LoggingV2::ListSavedQueriesResponse]
8223
+ #
8224
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
8225
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
8226
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
8227
+ def list_project_location_saved_queries(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
8228
+ command = make_simple_command(:get, 'v2/{+parent}/savedQueries', options)
8229
+ command.response_representation = Google::Apis::LoggingV2::ListSavedQueriesResponse::Representation
8230
+ command.response_class = Google::Apis::LoggingV2::ListSavedQueriesResponse
8231
+ command.params['parent'] = parent unless parent.nil?
8232
+ command.query['pageSize'] = page_size unless page_size.nil?
8233
+ command.query['pageToken'] = page_token unless page_token.nil?
8234
+ command.query['fields'] = fields unless fields.nil?
8235
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
8236
+ execute_or_queue_command(command, &block)
8237
+ end
8238
+
7531
8239
  # Deletes all the log entries in a log for the _Default Log Bucket. The log
7532
8240
  # reappears if it receives new entries. Log entries written shortly before the
7533
8241
  # delete operation might not be deleted. Entries received after the delete