google-apis-logging_v2 0.68.0 → 0.70.0
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1dad1255e2d6bcc595ca0bbd2f7776a5cc1faca7ee3b7f232c22d677ad1126c2
|
4
|
+
data.tar.gz: c054c35caeff49384aebe778cfc86c748edcb1fac3776e31911f0abf65e45bd0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 016daca53c8270fb6216ea8093e74f2ca29a0292b7a8b595844fe76136ed12f74f5627f604f0e117e60bfdb29ee74cb346fccd2e9cc253f7f35a8ce13275a398
|
7
|
+
data.tar.gz: bd78be44604564eb74d53211db9025d5c9c2c10d058baec8f52826515272b4893f32a5a24d82a65b8ef6046001b4a8d82fb29b42dcd71c94375744dfcbe5db50
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,14 @@
|
|
1
1
|
# Release history for google-apis-logging_v2
|
2
2
|
|
3
|
+
### v0.70.0 (2024-06-26)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20240620
|
6
|
+
|
7
|
+
### v0.69.0 (2024-05-19)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20240503
|
10
|
+
* Regenerated using generator version 0.15.0
|
11
|
+
|
3
12
|
### v0.68.0 (2024-05-05)
|
4
13
|
|
5
14
|
* Regenerated from discovery document revision 20240426
|
@@ -911,12 +911,13 @@ module Google
|
|
911
911
|
alias_method :cache_validated_with_origin_server?, :cache_validated_with_origin_server
|
912
912
|
|
913
913
|
# The request processing latency on the server, from the time the request was
|
914
|
-
# received until the response was sent.
|
914
|
+
# received until the response was sent. For WebSocket connections, this field
|
915
|
+
# refers to the entire time duration of the connection.
|
915
916
|
# Corresponds to the JSON property `latency`
|
916
917
|
# @return [String]
|
917
918
|
attr_accessor :latency
|
918
919
|
|
919
|
-
# Protocol used for the request. Examples: "HTTP/1.1", "HTTP/2"
|
920
|
+
# Protocol used for the request. Examples: "HTTP/1.1", "HTTP/2"
|
920
921
|
# Corresponds to the JSON property `protocol`
|
921
922
|
# @return [String]
|
922
923
|
attr_accessor :protocol
|
@@ -2351,6 +2352,12 @@ module Google
|
|
2351
2352
|
# @return [String]
|
2352
2353
|
attr_accessor :name
|
2353
2354
|
|
2355
|
+
# Output only. The resource name of the metric: "projects/[PROJECT_ID]/metrics/[
|
2356
|
+
# METRIC_ID]"
|
2357
|
+
# Corresponds to the JSON property `resourceName`
|
2358
|
+
# @return [String]
|
2359
|
+
attr_accessor :resource_name
|
2360
|
+
|
2354
2361
|
# Output only. The last update timestamp of the metric.This field may not be
|
2355
2362
|
# present for older metrics.
|
2356
2363
|
# Corresponds to the JSON property `updateTime`
|
@@ -2395,6 +2402,7 @@ module Google
|
|
2395
2402
|
@label_extractors = args[:label_extractors] if args.key?(:label_extractors)
|
2396
2403
|
@metric_descriptor = args[:metric_descriptor] if args.key?(:metric_descriptor)
|
2397
2404
|
@name = args[:name] if args.key?(:name)
|
2405
|
+
@resource_name = args[:resource_name] if args.key?(:resource_name)
|
2398
2406
|
@update_time = args[:update_time] if args.key?(:update_time)
|
2399
2407
|
@value_extractor = args[:value_extractor] if args.key?(:value_extractor)
|
2400
2408
|
@version = args[:version] if args.key?(:version)
|
@@ -16,13 +16,13 @@ module Google
|
|
16
16
|
module Apis
|
17
17
|
module LoggingV2
|
18
18
|
# Version of the google-apis-logging_v2 gem
|
19
|
-
GEM_VERSION = "0.
|
19
|
+
GEM_VERSION = "0.70.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
|
-
GENERATOR_VERSION = "0.
|
22
|
+
GENERATOR_VERSION = "0.15.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20240620"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -1049,6 +1049,7 @@ module Google
|
|
1049
1049
|
property :metric_descriptor, as: 'metricDescriptor', class: Google::Apis::LoggingV2::MetricDescriptor, decorator: Google::Apis::LoggingV2::MetricDescriptor::Representation
|
1050
1050
|
|
1051
1051
|
property :name, as: 'name'
|
1052
|
+
property :resource_name, as: 'resourceName'
|
1052
1053
|
property :update_time, as: 'updateTime'
|
1053
1054
|
property :value_extractor, as: 'valueExtractor'
|
1054
1055
|
property :version, as: 'version'
|
@@ -1260,6 +1260,11 @@ module Google
|
|
1260
1260
|
# projects/my-project/locations/us-central1Note: The location portion of the
|
1261
1261
|
# resource must be specified, but supplying the character - in place of
|
1262
1262
|
# LOCATION_ID will return all recent queries.
|
1263
|
+
# @param [String] filter
|
1264
|
+
# Optional. Specifies the type ("Logging" or "OpsAnalytics") of the recent
|
1265
|
+
# queries to list. The only valid value for this field is one of the two
|
1266
|
+
# allowable type function calls, which are the following: type("Logging") type("
|
1267
|
+
# OpsAnalytics")
|
1263
1268
|
# @param [Fixnum] page_size
|
1264
1269
|
# Optional. The maximum number of results to return from this request. Non-
|
1265
1270
|
# positive values are ignored. The presence of nextPageToken in the response
|
@@ -1286,11 +1291,12 @@ module Google
|
|
1286
1291
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1287
1292
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1288
1293
|
# @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)
|
1294
|
+
def list_billing_account_location_recent_queries(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1290
1295
|
command = make_simple_command(:get, 'v2/{+parent}/recentQueries', options)
|
1291
1296
|
command.response_representation = Google::Apis::LoggingV2::ListRecentQueriesResponse::Representation
|
1292
1297
|
command.response_class = Google::Apis::LoggingV2::ListRecentQueriesResponse
|
1293
1298
|
command.params['parent'] = parent unless parent.nil?
|
1299
|
+
command.query['filter'] = filter unless filter.nil?
|
1294
1300
|
command.query['pageSize'] = page_size unless page_size.nil?
|
1295
1301
|
command.query['pageToken'] = page_token unless page_token.nil?
|
1296
1302
|
command.query['fields'] = fields unless fields.nil?
|
@@ -1380,6 +1386,42 @@ module Google
|
|
1380
1386
|
execute_or_queue_command(command, &block)
|
1381
1387
|
end
|
1382
1388
|
|
1389
|
+
# Returns all data associated with the requested query.
|
1390
|
+
# @param [String] name
|
1391
|
+
# Required. The resource name of the saved query. "projects/[PROJECT_ID]/
|
1392
|
+
# locations/[LOCATION_ID]/savedQueries/[QUERY_ID]" "organizations/[
|
1393
|
+
# ORGANIZATION_ID]/locations/[LOCATION_ID]/savedQueries/[QUERY_ID]" "
|
1394
|
+
# billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/savedQueries/[
|
1395
|
+
# QUERY_ID]" "folders/[FOLDER_ID]/locations/[LOCATION_ID]/savedQueries/[QUERY_ID]
|
1396
|
+
# " For example: "projects/my-project/locations/global/savedQueries/my-saved-
|
1397
|
+
# query"
|
1398
|
+
# @param [String] fields
|
1399
|
+
# Selector specifying which fields to include in a partial response.
|
1400
|
+
# @param [String] quota_user
|
1401
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1402
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1403
|
+
# @param [Google::Apis::RequestOptions] options
|
1404
|
+
# Request-specific options
|
1405
|
+
#
|
1406
|
+
# @yield [result, err] Result & error if block supplied
|
1407
|
+
# @yieldparam result [Google::Apis::LoggingV2::SavedQuery] parsed result object
|
1408
|
+
# @yieldparam err [StandardError] error object if request failed
|
1409
|
+
#
|
1410
|
+
# @return [Google::Apis::LoggingV2::SavedQuery]
|
1411
|
+
#
|
1412
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1413
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1414
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1415
|
+
def get_billing_account_location_saved_query(name, fields: nil, quota_user: nil, options: nil, &block)
|
1416
|
+
command = make_simple_command(:get, 'v2/{+name}', options)
|
1417
|
+
command.response_representation = Google::Apis::LoggingV2::SavedQuery::Representation
|
1418
|
+
command.response_class = Google::Apis::LoggingV2::SavedQuery
|
1419
|
+
command.params['name'] = name unless name.nil?
|
1420
|
+
command.query['fields'] = fields unless fields.nil?
|
1421
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1422
|
+
execute_or_queue_command(command, &block)
|
1423
|
+
end
|
1424
|
+
|
1383
1425
|
# Lists the SavedQueries that were created by the user making the request.
|
1384
1426
|
# @param [String] parent
|
1385
1427
|
# Required. The resource to which the listed queries belong. "projects/[
|
@@ -1428,6 +1470,53 @@ module Google
|
|
1428
1470
|
execute_or_queue_command(command, &block)
|
1429
1471
|
end
|
1430
1472
|
|
1473
|
+
# Updates an existing SavedQuery.
|
1474
|
+
# @param [String] name
|
1475
|
+
# Output only. Resource name of the saved query.In the format: "projects/[
|
1476
|
+
# PROJECT_ID]/locations/[LOCATION_ID]/savedQueries/[QUERY_ID]" For a list of
|
1477
|
+
# supported locations, see Supported Regions (https://cloud.google.com/logging/
|
1478
|
+
# docs/region-support#bucket-regions)After the saved query is created, the
|
1479
|
+
# location cannot be changed.If the user doesn't provide a QUERY_ID, the system
|
1480
|
+
# will generate an alphanumeric ID.
|
1481
|
+
# @param [Google::Apis::LoggingV2::SavedQuery] saved_query_object
|
1482
|
+
# @param [String] update_mask
|
1483
|
+
# Required. A non-empty list of fields to change in the existing saved query.
|
1484
|
+
# Fields are relative to the saved_query and new values for the fields are taken
|
1485
|
+
# from the corresponding fields in the SavedQuery included in this request.
|
1486
|
+
# Fields not mentioned in update_mask are not changed and are ignored in the
|
1487
|
+
# request.To update all mutable fields, specify an update_mask of *.For example,
|
1488
|
+
# to change the description and query filter text of a saved query, specify an
|
1489
|
+
# update_mask of "description, query.filter".
|
1490
|
+
# @param [String] fields
|
1491
|
+
# Selector specifying which fields to include in a partial response.
|
1492
|
+
# @param [String] quota_user
|
1493
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1494
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1495
|
+
# @param [Google::Apis::RequestOptions] options
|
1496
|
+
# Request-specific options
|
1497
|
+
#
|
1498
|
+
# @yield [result, err] Result & error if block supplied
|
1499
|
+
# @yieldparam result [Google::Apis::LoggingV2::SavedQuery] parsed result object
|
1500
|
+
# @yieldparam err [StandardError] error object if request failed
|
1501
|
+
#
|
1502
|
+
# @return [Google::Apis::LoggingV2::SavedQuery]
|
1503
|
+
#
|
1504
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1505
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1506
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1507
|
+
def patch_billing_account_location_saved_query(name, saved_query_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1508
|
+
command = make_simple_command(:patch, 'v2/{+name}', options)
|
1509
|
+
command.request_representation = Google::Apis::LoggingV2::SavedQuery::Representation
|
1510
|
+
command.request_object = saved_query_object
|
1511
|
+
command.response_representation = Google::Apis::LoggingV2::SavedQuery::Representation
|
1512
|
+
command.response_class = Google::Apis::LoggingV2::SavedQuery
|
1513
|
+
command.params['name'] = name unless name.nil?
|
1514
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
1515
|
+
command.query['fields'] = fields unless fields.nil?
|
1516
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1517
|
+
execute_or_queue_command(command, &block)
|
1518
|
+
end
|
1519
|
+
|
1431
1520
|
# Deletes all the log entries in a log for the _Default Log Bucket. The log
|
1432
1521
|
# reappears if it receives new entries. Log entries written shortly before the
|
1433
1522
|
# delete operation might not be deleted. Entries received after the delete
|
@@ -1532,11 +1621,11 @@ module Google
|
|
1532
1621
|
# 123456789"
|
1533
1622
|
# @param [Google::Apis::LoggingV2::LogSink] log_sink_object
|
1534
1623
|
# @param [String] custom_writer_identity
|
1535
|
-
# Optional.
|
1536
|
-
# the log entries. The format must be serviceAccount:some@email. This
|
1537
|
-
# only be specified
|
1538
|
-
# project.
|
1539
|
-
# generated.
|
1624
|
+
# Optional. The service account provided by the caller that will be used to
|
1625
|
+
# write the log entries. The format must be serviceAccount:some@email. This
|
1626
|
+
# field can only be specified when you are routing logs to a log bucket that is
|
1627
|
+
# in a different project than the sink. When not specified, a Logging service
|
1628
|
+
# account will automatically be generated.
|
1540
1629
|
# @param [Boolean] unique_writer_identity
|
1541
1630
|
# Optional. Determines the kind of IAM identity returned as writer_identity in
|
1542
1631
|
# the new sink. If this value is omitted or set to false, and if the sink's
|
@@ -1711,11 +1800,11 @@ module Google
|
|
1711
1800
|
# example:"projects/my-project/sinks/my-sink"
|
1712
1801
|
# @param [Google::Apis::LoggingV2::LogSink] log_sink_object
|
1713
1802
|
# @param [String] custom_writer_identity
|
1714
|
-
# Optional.
|
1715
|
-
# the log entries. The format must be serviceAccount:some@email. This
|
1716
|
-
# only be specified
|
1717
|
-
# project.
|
1718
|
-
# generated.
|
1803
|
+
# Optional. The service account provided by the caller that will be used to
|
1804
|
+
# write the log entries. The format must be serviceAccount:some@email. This
|
1805
|
+
# field can only be specified when you are routing logs to a log bucket that is
|
1806
|
+
# in a different project than the sink. When not specified, a Logging service
|
1807
|
+
# account will automatically be generated.
|
1719
1808
|
# @param [Boolean] unique_writer_identity
|
1720
1809
|
# Optional. See sinks.create for a description of this field. When updating a
|
1721
1810
|
# sink, the effect of this field on the value of writer_identity in the updated
|
@@ -1780,11 +1869,11 @@ module Google
|
|
1780
1869
|
# example:"projects/my-project/sinks/my-sink"
|
1781
1870
|
# @param [Google::Apis::LoggingV2::LogSink] log_sink_object
|
1782
1871
|
# @param [String] custom_writer_identity
|
1783
|
-
# Optional.
|
1784
|
-
# the log entries. The format must be serviceAccount:some@email. This
|
1785
|
-
# only be specified
|
1786
|
-
# project.
|
1787
|
-
# generated.
|
1872
|
+
# Optional. The service account provided by the caller that will be used to
|
1873
|
+
# write the log entries. The format must be serviceAccount:some@email. This
|
1874
|
+
# field can only be specified when you are routing logs to a log bucket that is
|
1875
|
+
# in a different project than the sink. When not specified, a Logging service
|
1876
|
+
# account will automatically be generated.
|
1788
1877
|
# @param [Boolean] unique_writer_identity
|
1789
1878
|
# Optional. See sinks.create for a description of this field. When updating a
|
1790
1879
|
# sink, the effect of this field on the value of writer_identity in the updated
|
@@ -3529,6 +3618,11 @@ module Google
|
|
3529
3618
|
# projects/my-project/locations/us-central1Note: The location portion of the
|
3530
3619
|
# resource must be specified, but supplying the character - in place of
|
3531
3620
|
# LOCATION_ID will return all recent queries.
|
3621
|
+
# @param [String] filter
|
3622
|
+
# Optional. Specifies the type ("Logging" or "OpsAnalytics") of the recent
|
3623
|
+
# queries to list. The only valid value for this field is one of the two
|
3624
|
+
# allowable type function calls, which are the following: type("Logging") type("
|
3625
|
+
# OpsAnalytics")
|
3532
3626
|
# @param [Fixnum] page_size
|
3533
3627
|
# Optional. The maximum number of results to return from this request. Non-
|
3534
3628
|
# positive values are ignored. The presence of nextPageToken in the response
|
@@ -3555,11 +3649,12 @@ module Google
|
|
3555
3649
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
3556
3650
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
3557
3651
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
3558
|
-
def list_folder_location_recent_queries(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
3652
|
+
def list_folder_location_recent_queries(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
3559
3653
|
command = make_simple_command(:get, 'v2/{+parent}/recentQueries', options)
|
3560
3654
|
command.response_representation = Google::Apis::LoggingV2::ListRecentQueriesResponse::Representation
|
3561
3655
|
command.response_class = Google::Apis::LoggingV2::ListRecentQueriesResponse
|
3562
3656
|
command.params['parent'] = parent unless parent.nil?
|
3657
|
+
command.query['filter'] = filter unless filter.nil?
|
3563
3658
|
command.query['pageSize'] = page_size unless page_size.nil?
|
3564
3659
|
command.query['pageToken'] = page_token unless page_token.nil?
|
3565
3660
|
command.query['fields'] = fields unless fields.nil?
|
@@ -3649,6 +3744,42 @@ module Google
|
|
3649
3744
|
execute_or_queue_command(command, &block)
|
3650
3745
|
end
|
3651
3746
|
|
3747
|
+
# Returns all data associated with the requested query.
|
3748
|
+
# @param [String] name
|
3749
|
+
# Required. The resource name of the saved query. "projects/[PROJECT_ID]/
|
3750
|
+
# locations/[LOCATION_ID]/savedQueries/[QUERY_ID]" "organizations/[
|
3751
|
+
# ORGANIZATION_ID]/locations/[LOCATION_ID]/savedQueries/[QUERY_ID]" "
|
3752
|
+
# billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/savedQueries/[
|
3753
|
+
# QUERY_ID]" "folders/[FOLDER_ID]/locations/[LOCATION_ID]/savedQueries/[QUERY_ID]
|
3754
|
+
# " For example: "projects/my-project/locations/global/savedQueries/my-saved-
|
3755
|
+
# query"
|
3756
|
+
# @param [String] fields
|
3757
|
+
# Selector specifying which fields to include in a partial response.
|
3758
|
+
# @param [String] quota_user
|
3759
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
3760
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
3761
|
+
# @param [Google::Apis::RequestOptions] options
|
3762
|
+
# Request-specific options
|
3763
|
+
#
|
3764
|
+
# @yield [result, err] Result & error if block supplied
|
3765
|
+
# @yieldparam result [Google::Apis::LoggingV2::SavedQuery] parsed result object
|
3766
|
+
# @yieldparam err [StandardError] error object if request failed
|
3767
|
+
#
|
3768
|
+
# @return [Google::Apis::LoggingV2::SavedQuery]
|
3769
|
+
#
|
3770
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
3771
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
3772
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
3773
|
+
def get_folder_location_saved_query(name, fields: nil, quota_user: nil, options: nil, &block)
|
3774
|
+
command = make_simple_command(:get, 'v2/{+name}', options)
|
3775
|
+
command.response_representation = Google::Apis::LoggingV2::SavedQuery::Representation
|
3776
|
+
command.response_class = Google::Apis::LoggingV2::SavedQuery
|
3777
|
+
command.params['name'] = name unless name.nil?
|
3778
|
+
command.query['fields'] = fields unless fields.nil?
|
3779
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
3780
|
+
execute_or_queue_command(command, &block)
|
3781
|
+
end
|
3782
|
+
|
3652
3783
|
# Lists the SavedQueries that were created by the user making the request.
|
3653
3784
|
# @param [String] parent
|
3654
3785
|
# Required. The resource to which the listed queries belong. "projects/[
|
@@ -3697,6 +3828,53 @@ module Google
|
|
3697
3828
|
execute_or_queue_command(command, &block)
|
3698
3829
|
end
|
3699
3830
|
|
3831
|
+
# Updates an existing SavedQuery.
|
3832
|
+
# @param [String] name
|
3833
|
+
# Output only. Resource name of the saved query.In the format: "projects/[
|
3834
|
+
# PROJECT_ID]/locations/[LOCATION_ID]/savedQueries/[QUERY_ID]" For a list of
|
3835
|
+
# supported locations, see Supported Regions (https://cloud.google.com/logging/
|
3836
|
+
# docs/region-support#bucket-regions)After the saved query is created, the
|
3837
|
+
# location cannot be changed.If the user doesn't provide a QUERY_ID, the system
|
3838
|
+
# will generate an alphanumeric ID.
|
3839
|
+
# @param [Google::Apis::LoggingV2::SavedQuery] saved_query_object
|
3840
|
+
# @param [String] update_mask
|
3841
|
+
# Required. A non-empty list of fields to change in the existing saved query.
|
3842
|
+
# Fields are relative to the saved_query and new values for the fields are taken
|
3843
|
+
# from the corresponding fields in the SavedQuery included in this request.
|
3844
|
+
# Fields not mentioned in update_mask are not changed and are ignored in the
|
3845
|
+
# request.To update all mutable fields, specify an update_mask of *.For example,
|
3846
|
+
# to change the description and query filter text of a saved query, specify an
|
3847
|
+
# update_mask of "description, query.filter".
|
3848
|
+
# @param [String] fields
|
3849
|
+
# Selector specifying which fields to include in a partial response.
|
3850
|
+
# @param [String] quota_user
|
3851
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
3852
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
3853
|
+
# @param [Google::Apis::RequestOptions] options
|
3854
|
+
# Request-specific options
|
3855
|
+
#
|
3856
|
+
# @yield [result, err] Result & error if block supplied
|
3857
|
+
# @yieldparam result [Google::Apis::LoggingV2::SavedQuery] parsed result object
|
3858
|
+
# @yieldparam err [StandardError] error object if request failed
|
3859
|
+
#
|
3860
|
+
# @return [Google::Apis::LoggingV2::SavedQuery]
|
3861
|
+
#
|
3862
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
3863
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
3864
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
3865
|
+
def patch_folder_location_saved_query(name, saved_query_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
3866
|
+
command = make_simple_command(:patch, 'v2/{+name}', options)
|
3867
|
+
command.request_representation = Google::Apis::LoggingV2::SavedQuery::Representation
|
3868
|
+
command.request_object = saved_query_object
|
3869
|
+
command.response_representation = Google::Apis::LoggingV2::SavedQuery::Representation
|
3870
|
+
command.response_class = Google::Apis::LoggingV2::SavedQuery
|
3871
|
+
command.params['name'] = name unless name.nil?
|
3872
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
3873
|
+
command.query['fields'] = fields unless fields.nil?
|
3874
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
3875
|
+
execute_or_queue_command(command, &block)
|
3876
|
+
end
|
3877
|
+
|
3700
3878
|
# Deletes all the log entries in a log for the _Default Log Bucket. The log
|
3701
3879
|
# reappears if it receives new entries. Log entries written shortly before the
|
3702
3880
|
# delete operation might not be deleted. Entries received after the delete
|
@@ -3801,11 +3979,11 @@ module Google
|
|
3801
3979
|
# 123456789"
|
3802
3980
|
# @param [Google::Apis::LoggingV2::LogSink] log_sink_object
|
3803
3981
|
# @param [String] custom_writer_identity
|
3804
|
-
# Optional.
|
3805
|
-
# the log entries. The format must be serviceAccount:some@email. This
|
3806
|
-
# only be specified
|
3807
|
-
# project.
|
3808
|
-
# generated.
|
3982
|
+
# Optional. The service account provided by the caller that will be used to
|
3983
|
+
# write the log entries. The format must be serviceAccount:some@email. This
|
3984
|
+
# field can only be specified when you are routing logs to a log bucket that is
|
3985
|
+
# in a different project than the sink. When not specified, a Logging service
|
3986
|
+
# account will automatically be generated.
|
3809
3987
|
# @param [Boolean] unique_writer_identity
|
3810
3988
|
# Optional. Determines the kind of IAM identity returned as writer_identity in
|
3811
3989
|
# the new sink. If this value is omitted or set to false, and if the sink's
|
@@ -3980,11 +4158,11 @@ module Google
|
|
3980
4158
|
# example:"projects/my-project/sinks/my-sink"
|
3981
4159
|
# @param [Google::Apis::LoggingV2::LogSink] log_sink_object
|
3982
4160
|
# @param [String] custom_writer_identity
|
3983
|
-
# Optional.
|
3984
|
-
# the log entries. The format must be serviceAccount:some@email. This
|
3985
|
-
# only be specified
|
3986
|
-
# project.
|
3987
|
-
# generated.
|
4161
|
+
# Optional. The service account provided by the caller that will be used to
|
4162
|
+
# write the log entries. The format must be serviceAccount:some@email. This
|
4163
|
+
# field can only be specified when you are routing logs to a log bucket that is
|
4164
|
+
# in a different project than the sink. When not specified, a Logging service
|
4165
|
+
# account will automatically be generated.
|
3988
4166
|
# @param [Boolean] unique_writer_identity
|
3989
4167
|
# Optional. See sinks.create for a description of this field. When updating a
|
3990
4168
|
# sink, the effect of this field on the value of writer_identity in the updated
|
@@ -4049,11 +4227,11 @@ module Google
|
|
4049
4227
|
# example:"projects/my-project/sinks/my-sink"
|
4050
4228
|
# @param [Google::Apis::LoggingV2::LogSink] log_sink_object
|
4051
4229
|
# @param [String] custom_writer_identity
|
4052
|
-
# Optional.
|
4053
|
-
# the log entries. The format must be serviceAccount:some@email. This
|
4054
|
-
# only be specified
|
4055
|
-
# project.
|
4056
|
-
# generated.
|
4230
|
+
# Optional. The service account provided by the caller that will be used to
|
4231
|
+
# write the log entries. The format must be serviceAccount:some@email. This
|
4232
|
+
# field can only be specified when you are routing logs to a log bucket that is
|
4233
|
+
# in a different project than the sink. When not specified, a Logging service
|
4234
|
+
# account will automatically be generated.
|
4057
4235
|
# @param [Boolean] unique_writer_identity
|
4058
4236
|
# Optional. See sinks.create for a description of this field. When updating a
|
4059
4237
|
# sink, the effect of this field on the value of writer_identity in the updated
|
@@ -6644,6 +6822,11 @@ module Google
|
|
6644
6822
|
# projects/my-project/locations/us-central1Note: The location portion of the
|
6645
6823
|
# resource must be specified, but supplying the character - in place of
|
6646
6824
|
# LOCATION_ID will return all recent queries.
|
6825
|
+
# @param [String] filter
|
6826
|
+
# Optional. Specifies the type ("Logging" or "OpsAnalytics") of the recent
|
6827
|
+
# queries to list. The only valid value for this field is one of the two
|
6828
|
+
# allowable type function calls, which are the following: type("Logging") type("
|
6829
|
+
# OpsAnalytics")
|
6647
6830
|
# @param [Fixnum] page_size
|
6648
6831
|
# Optional. The maximum number of results to return from this request. Non-
|
6649
6832
|
# positive values are ignored. The presence of nextPageToken in the response
|
@@ -6670,11 +6853,12 @@ module Google
|
|
6670
6853
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
6671
6854
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
6672
6855
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
6673
|
-
def list_organization_location_recent_queries(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
6856
|
+
def list_organization_location_recent_queries(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
6674
6857
|
command = make_simple_command(:get, 'v2/{+parent}/recentQueries', options)
|
6675
6858
|
command.response_representation = Google::Apis::LoggingV2::ListRecentQueriesResponse::Representation
|
6676
6859
|
command.response_class = Google::Apis::LoggingV2::ListRecentQueriesResponse
|
6677
6860
|
command.params['parent'] = parent unless parent.nil?
|
6861
|
+
command.query['filter'] = filter unless filter.nil?
|
6678
6862
|
command.query['pageSize'] = page_size unless page_size.nil?
|
6679
6863
|
command.query['pageToken'] = page_token unless page_token.nil?
|
6680
6864
|
command.query['fields'] = fields unless fields.nil?
|
@@ -6764,6 +6948,42 @@ module Google
|
|
6764
6948
|
execute_or_queue_command(command, &block)
|
6765
6949
|
end
|
6766
6950
|
|
6951
|
+
# Returns all data associated with the requested query.
|
6952
|
+
# @param [String] name
|
6953
|
+
# Required. The resource name of the saved query. "projects/[PROJECT_ID]/
|
6954
|
+
# locations/[LOCATION_ID]/savedQueries/[QUERY_ID]" "organizations/[
|
6955
|
+
# ORGANIZATION_ID]/locations/[LOCATION_ID]/savedQueries/[QUERY_ID]" "
|
6956
|
+
# billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/savedQueries/[
|
6957
|
+
# QUERY_ID]" "folders/[FOLDER_ID]/locations/[LOCATION_ID]/savedQueries/[QUERY_ID]
|
6958
|
+
# " For example: "projects/my-project/locations/global/savedQueries/my-saved-
|
6959
|
+
# query"
|
6960
|
+
# @param [String] fields
|
6961
|
+
# Selector specifying which fields to include in a partial response.
|
6962
|
+
# @param [String] quota_user
|
6963
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
6964
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
6965
|
+
# @param [Google::Apis::RequestOptions] options
|
6966
|
+
# Request-specific options
|
6967
|
+
#
|
6968
|
+
# @yield [result, err] Result & error if block supplied
|
6969
|
+
# @yieldparam result [Google::Apis::LoggingV2::SavedQuery] parsed result object
|
6970
|
+
# @yieldparam err [StandardError] error object if request failed
|
6971
|
+
#
|
6972
|
+
# @return [Google::Apis::LoggingV2::SavedQuery]
|
6973
|
+
#
|
6974
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
6975
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
6976
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
6977
|
+
def get_organization_location_saved_query(name, fields: nil, quota_user: nil, options: nil, &block)
|
6978
|
+
command = make_simple_command(:get, 'v2/{+name}', options)
|
6979
|
+
command.response_representation = Google::Apis::LoggingV2::SavedQuery::Representation
|
6980
|
+
command.response_class = Google::Apis::LoggingV2::SavedQuery
|
6981
|
+
command.params['name'] = name unless name.nil?
|
6982
|
+
command.query['fields'] = fields unless fields.nil?
|
6983
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
6984
|
+
execute_or_queue_command(command, &block)
|
6985
|
+
end
|
6986
|
+
|
6767
6987
|
# Lists the SavedQueries that were created by the user making the request.
|
6768
6988
|
# @param [String] parent
|
6769
6989
|
# Required. The resource to which the listed queries belong. "projects/[
|
@@ -6812,6 +7032,53 @@ module Google
|
|
6812
7032
|
execute_or_queue_command(command, &block)
|
6813
7033
|
end
|
6814
7034
|
|
7035
|
+
# Updates an existing SavedQuery.
|
7036
|
+
# @param [String] name
|
7037
|
+
# Output only. Resource name of the saved query.In the format: "projects/[
|
7038
|
+
# PROJECT_ID]/locations/[LOCATION_ID]/savedQueries/[QUERY_ID]" For a list of
|
7039
|
+
# supported locations, see Supported Regions (https://cloud.google.com/logging/
|
7040
|
+
# docs/region-support#bucket-regions)After the saved query is created, the
|
7041
|
+
# location cannot be changed.If the user doesn't provide a QUERY_ID, the system
|
7042
|
+
# will generate an alphanumeric ID.
|
7043
|
+
# @param [Google::Apis::LoggingV2::SavedQuery] saved_query_object
|
7044
|
+
# @param [String] update_mask
|
7045
|
+
# Required. A non-empty list of fields to change in the existing saved query.
|
7046
|
+
# Fields are relative to the saved_query and new values for the fields are taken
|
7047
|
+
# from the corresponding fields in the SavedQuery included in this request.
|
7048
|
+
# Fields not mentioned in update_mask are not changed and are ignored in the
|
7049
|
+
# request.To update all mutable fields, specify an update_mask of *.For example,
|
7050
|
+
# to change the description and query filter text of a saved query, specify an
|
7051
|
+
# update_mask of "description, query.filter".
|
7052
|
+
# @param [String] fields
|
7053
|
+
# Selector specifying which fields to include in a partial response.
|
7054
|
+
# @param [String] quota_user
|
7055
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
7056
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
7057
|
+
# @param [Google::Apis::RequestOptions] options
|
7058
|
+
# Request-specific options
|
7059
|
+
#
|
7060
|
+
# @yield [result, err] Result & error if block supplied
|
7061
|
+
# @yieldparam result [Google::Apis::LoggingV2::SavedQuery] parsed result object
|
7062
|
+
# @yieldparam err [StandardError] error object if request failed
|
7063
|
+
#
|
7064
|
+
# @return [Google::Apis::LoggingV2::SavedQuery]
|
7065
|
+
#
|
7066
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
7067
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
7068
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
7069
|
+
def patch_organization_location_saved_query(name, saved_query_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
7070
|
+
command = make_simple_command(:patch, 'v2/{+name}', options)
|
7071
|
+
command.request_representation = Google::Apis::LoggingV2::SavedQuery::Representation
|
7072
|
+
command.request_object = saved_query_object
|
7073
|
+
command.response_representation = Google::Apis::LoggingV2::SavedQuery::Representation
|
7074
|
+
command.response_class = Google::Apis::LoggingV2::SavedQuery
|
7075
|
+
command.params['name'] = name unless name.nil?
|
7076
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
7077
|
+
command.query['fields'] = fields unless fields.nil?
|
7078
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
7079
|
+
execute_or_queue_command(command, &block)
|
7080
|
+
end
|
7081
|
+
|
6815
7082
|
# Deletes all the log entries in a log for the _Default Log Bucket. The log
|
6816
7083
|
# reappears if it receives new entries. Log entries written shortly before the
|
6817
7084
|
# delete operation might not be deleted. Entries received after the delete
|
@@ -6916,11 +7183,11 @@ module Google
|
|
6916
7183
|
# 123456789"
|
6917
7184
|
# @param [Google::Apis::LoggingV2::LogSink] log_sink_object
|
6918
7185
|
# @param [String] custom_writer_identity
|
6919
|
-
# Optional.
|
6920
|
-
# the log entries. The format must be serviceAccount:some@email. This
|
6921
|
-
# only be specified
|
6922
|
-
# project.
|
6923
|
-
# generated.
|
7186
|
+
# Optional. The service account provided by the caller that will be used to
|
7187
|
+
# write the log entries. The format must be serviceAccount:some@email. This
|
7188
|
+
# field can only be specified when you are routing logs to a log bucket that is
|
7189
|
+
# in a different project than the sink. When not specified, a Logging service
|
7190
|
+
# account will automatically be generated.
|
6924
7191
|
# @param [Boolean] unique_writer_identity
|
6925
7192
|
# Optional. Determines the kind of IAM identity returned as writer_identity in
|
6926
7193
|
# the new sink. If this value is omitted or set to false, and if the sink's
|
@@ -7095,11 +7362,11 @@ module Google
|
|
7095
7362
|
# example:"projects/my-project/sinks/my-sink"
|
7096
7363
|
# @param [Google::Apis::LoggingV2::LogSink] log_sink_object
|
7097
7364
|
# @param [String] custom_writer_identity
|
7098
|
-
# Optional.
|
7099
|
-
# the log entries. The format must be serviceAccount:some@email. This
|
7100
|
-
# only be specified
|
7101
|
-
# project.
|
7102
|
-
# generated.
|
7365
|
+
# Optional. The service account provided by the caller that will be used to
|
7366
|
+
# write the log entries. The format must be serviceAccount:some@email. This
|
7367
|
+
# field can only be specified when you are routing logs to a log bucket that is
|
7368
|
+
# in a different project than the sink. When not specified, a Logging service
|
7369
|
+
# account will automatically be generated.
|
7103
7370
|
# @param [Boolean] unique_writer_identity
|
7104
7371
|
# Optional. See sinks.create for a description of this field. When updating a
|
7105
7372
|
# sink, the effect of this field on the value of writer_identity in the updated
|
@@ -7164,11 +7431,11 @@ module Google
|
|
7164
7431
|
# example:"projects/my-project/sinks/my-sink"
|
7165
7432
|
# @param [Google::Apis::LoggingV2::LogSink] log_sink_object
|
7166
7433
|
# @param [String] custom_writer_identity
|
7167
|
-
# Optional.
|
7168
|
-
# the log entries. The format must be serviceAccount:some@email. This
|
7169
|
-
# only be specified
|
7170
|
-
# project.
|
7171
|
-
# generated.
|
7434
|
+
# Optional. The service account provided by the caller that will be used to
|
7435
|
+
# write the log entries. The format must be serviceAccount:some@email. This
|
7436
|
+
# field can only be specified when you are routing logs to a log bucket that is
|
7437
|
+
# in a different project than the sink. When not specified, a Logging service
|
7438
|
+
# account will automatically be generated.
|
7172
7439
|
# @param [Boolean] unique_writer_identity
|
7173
7440
|
# Optional. See sinks.create for a description of this field. When updating a
|
7174
7441
|
# sink, the effect of this field on the value of writer_identity in the updated
|
@@ -8542,6 +8809,11 @@ module Google
|
|
8542
8809
|
# projects/my-project/locations/us-central1Note: The location portion of the
|
8543
8810
|
# resource must be specified, but supplying the character - in place of
|
8544
8811
|
# LOCATION_ID will return all recent queries.
|
8812
|
+
# @param [String] filter
|
8813
|
+
# Optional. Specifies the type ("Logging" or "OpsAnalytics") of the recent
|
8814
|
+
# queries to list. The only valid value for this field is one of the two
|
8815
|
+
# allowable type function calls, which are the following: type("Logging") type("
|
8816
|
+
# OpsAnalytics")
|
8545
8817
|
# @param [Fixnum] page_size
|
8546
8818
|
# Optional. The maximum number of results to return from this request. Non-
|
8547
8819
|
# positive values are ignored. The presence of nextPageToken in the response
|
@@ -8568,11 +8840,12 @@ module Google
|
|
8568
8840
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
8569
8841
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
8570
8842
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
8571
|
-
def list_project_location_recent_queries(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
8843
|
+
def list_project_location_recent_queries(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
8572
8844
|
command = make_simple_command(:get, 'v2/{+parent}/recentQueries', options)
|
8573
8845
|
command.response_representation = Google::Apis::LoggingV2::ListRecentQueriesResponse::Representation
|
8574
8846
|
command.response_class = Google::Apis::LoggingV2::ListRecentQueriesResponse
|
8575
8847
|
command.params['parent'] = parent unless parent.nil?
|
8848
|
+
command.query['filter'] = filter unless filter.nil?
|
8576
8849
|
command.query['pageSize'] = page_size unless page_size.nil?
|
8577
8850
|
command.query['pageToken'] = page_token unless page_token.nil?
|
8578
8851
|
command.query['fields'] = fields unless fields.nil?
|
@@ -8662,6 +8935,42 @@ module Google
|
|
8662
8935
|
execute_or_queue_command(command, &block)
|
8663
8936
|
end
|
8664
8937
|
|
8938
|
+
# Returns all data associated with the requested query.
|
8939
|
+
# @param [String] name
|
8940
|
+
# Required. The resource name of the saved query. "projects/[PROJECT_ID]/
|
8941
|
+
# locations/[LOCATION_ID]/savedQueries/[QUERY_ID]" "organizations/[
|
8942
|
+
# ORGANIZATION_ID]/locations/[LOCATION_ID]/savedQueries/[QUERY_ID]" "
|
8943
|
+
# billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/savedQueries/[
|
8944
|
+
# QUERY_ID]" "folders/[FOLDER_ID]/locations/[LOCATION_ID]/savedQueries/[QUERY_ID]
|
8945
|
+
# " For example: "projects/my-project/locations/global/savedQueries/my-saved-
|
8946
|
+
# query"
|
8947
|
+
# @param [String] fields
|
8948
|
+
# Selector specifying which fields to include in a partial response.
|
8949
|
+
# @param [String] quota_user
|
8950
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
8951
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
8952
|
+
# @param [Google::Apis::RequestOptions] options
|
8953
|
+
# Request-specific options
|
8954
|
+
#
|
8955
|
+
# @yield [result, err] Result & error if block supplied
|
8956
|
+
# @yieldparam result [Google::Apis::LoggingV2::SavedQuery] parsed result object
|
8957
|
+
# @yieldparam err [StandardError] error object if request failed
|
8958
|
+
#
|
8959
|
+
# @return [Google::Apis::LoggingV2::SavedQuery]
|
8960
|
+
#
|
8961
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
8962
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
8963
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
8964
|
+
def get_project_location_saved_query(name, fields: nil, quota_user: nil, options: nil, &block)
|
8965
|
+
command = make_simple_command(:get, 'v2/{+name}', options)
|
8966
|
+
command.response_representation = Google::Apis::LoggingV2::SavedQuery::Representation
|
8967
|
+
command.response_class = Google::Apis::LoggingV2::SavedQuery
|
8968
|
+
command.params['name'] = name unless name.nil?
|
8969
|
+
command.query['fields'] = fields unless fields.nil?
|
8970
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
8971
|
+
execute_or_queue_command(command, &block)
|
8972
|
+
end
|
8973
|
+
|
8665
8974
|
# Lists the SavedQueries that were created by the user making the request.
|
8666
8975
|
# @param [String] parent
|
8667
8976
|
# Required. The resource to which the listed queries belong. "projects/[
|
@@ -8710,6 +9019,53 @@ module Google
|
|
8710
9019
|
execute_or_queue_command(command, &block)
|
8711
9020
|
end
|
8712
9021
|
|
9022
|
+
# Updates an existing SavedQuery.
|
9023
|
+
# @param [String] name
|
9024
|
+
# Output only. Resource name of the saved query.In the format: "projects/[
|
9025
|
+
# PROJECT_ID]/locations/[LOCATION_ID]/savedQueries/[QUERY_ID]" For a list of
|
9026
|
+
# supported locations, see Supported Regions (https://cloud.google.com/logging/
|
9027
|
+
# docs/region-support#bucket-regions)After the saved query is created, the
|
9028
|
+
# location cannot be changed.If the user doesn't provide a QUERY_ID, the system
|
9029
|
+
# will generate an alphanumeric ID.
|
9030
|
+
# @param [Google::Apis::LoggingV2::SavedQuery] saved_query_object
|
9031
|
+
# @param [String] update_mask
|
9032
|
+
# Required. A non-empty list of fields to change in the existing saved query.
|
9033
|
+
# Fields are relative to the saved_query and new values for the fields are taken
|
9034
|
+
# from the corresponding fields in the SavedQuery included in this request.
|
9035
|
+
# Fields not mentioned in update_mask are not changed and are ignored in the
|
9036
|
+
# request.To update all mutable fields, specify an update_mask of *.For example,
|
9037
|
+
# to change the description and query filter text of a saved query, specify an
|
9038
|
+
# update_mask of "description, query.filter".
|
9039
|
+
# @param [String] fields
|
9040
|
+
# Selector specifying which fields to include in a partial response.
|
9041
|
+
# @param [String] quota_user
|
9042
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
9043
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
9044
|
+
# @param [Google::Apis::RequestOptions] options
|
9045
|
+
# Request-specific options
|
9046
|
+
#
|
9047
|
+
# @yield [result, err] Result & error if block supplied
|
9048
|
+
# @yieldparam result [Google::Apis::LoggingV2::SavedQuery] parsed result object
|
9049
|
+
# @yieldparam err [StandardError] error object if request failed
|
9050
|
+
#
|
9051
|
+
# @return [Google::Apis::LoggingV2::SavedQuery]
|
9052
|
+
#
|
9053
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
9054
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
9055
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
9056
|
+
def patch_project_location_saved_query(name, saved_query_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
9057
|
+
command = make_simple_command(:patch, 'v2/{+name}', options)
|
9058
|
+
command.request_representation = Google::Apis::LoggingV2::SavedQuery::Representation
|
9059
|
+
command.request_object = saved_query_object
|
9060
|
+
command.response_representation = Google::Apis::LoggingV2::SavedQuery::Representation
|
9061
|
+
command.response_class = Google::Apis::LoggingV2::SavedQuery
|
9062
|
+
command.params['name'] = name unless name.nil?
|
9063
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
9064
|
+
command.query['fields'] = fields unless fields.nil?
|
9065
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
9066
|
+
execute_or_queue_command(command, &block)
|
9067
|
+
end
|
9068
|
+
|
8713
9069
|
# Deletes all the log entries in a log for the _Default Log Bucket. The log
|
8714
9070
|
# reappears if it receives new entries. Log entries written shortly before the
|
8715
9071
|
# delete operation might not be deleted. Entries received after the delete
|
@@ -8988,11 +9344,11 @@ module Google
|
|
8988
9344
|
# 123456789"
|
8989
9345
|
# @param [Google::Apis::LoggingV2::LogSink] log_sink_object
|
8990
9346
|
# @param [String] custom_writer_identity
|
8991
|
-
# Optional.
|
8992
|
-
# the log entries. The format must be serviceAccount:some@email. This
|
8993
|
-
# only be specified
|
8994
|
-
# project.
|
8995
|
-
# generated.
|
9347
|
+
# Optional. The service account provided by the caller that will be used to
|
9348
|
+
# write the log entries. The format must be serviceAccount:some@email. This
|
9349
|
+
# field can only be specified when you are routing logs to a log bucket that is
|
9350
|
+
# in a different project than the sink. When not specified, a Logging service
|
9351
|
+
# account will automatically be generated.
|
8996
9352
|
# @param [Boolean] unique_writer_identity
|
8997
9353
|
# Optional. Determines the kind of IAM identity returned as writer_identity in
|
8998
9354
|
# the new sink. If this value is omitted or set to false, and if the sink's
|
@@ -9167,11 +9523,11 @@ module Google
|
|
9167
9523
|
# example:"projects/my-project/sinks/my-sink"
|
9168
9524
|
# @param [Google::Apis::LoggingV2::LogSink] log_sink_object
|
9169
9525
|
# @param [String] custom_writer_identity
|
9170
|
-
# Optional.
|
9171
|
-
# the log entries. The format must be serviceAccount:some@email. This
|
9172
|
-
# only be specified
|
9173
|
-
# project.
|
9174
|
-
# generated.
|
9526
|
+
# Optional. The service account provided by the caller that will be used to
|
9527
|
+
# write the log entries. The format must be serviceAccount:some@email. This
|
9528
|
+
# field can only be specified when you are routing logs to a log bucket that is
|
9529
|
+
# in a different project than the sink. When not specified, a Logging service
|
9530
|
+
# account will automatically be generated.
|
9175
9531
|
# @param [Boolean] unique_writer_identity
|
9176
9532
|
# Optional. See sinks.create for a description of this field. When updating a
|
9177
9533
|
# sink, the effect of this field on the value of writer_identity in the updated
|
@@ -9236,11 +9592,11 @@ module Google
|
|
9236
9592
|
# example:"projects/my-project/sinks/my-sink"
|
9237
9593
|
# @param [Google::Apis::LoggingV2::LogSink] log_sink_object
|
9238
9594
|
# @param [String] custom_writer_identity
|
9239
|
-
# Optional.
|
9240
|
-
# the log entries. The format must be serviceAccount:some@email. This
|
9241
|
-
# only be specified
|
9242
|
-
# project.
|
9243
|
-
# generated.
|
9595
|
+
# Optional. The service account provided by the caller that will be used to
|
9596
|
+
# write the log entries. The format must be serviceAccount:some@email. This
|
9597
|
+
# field can only be specified when you are routing logs to a log bucket that is
|
9598
|
+
# in a different project than the sink. When not specified, a Logging service
|
9599
|
+
# account will automatically be generated.
|
9244
9600
|
# @param [Boolean] unique_writer_identity
|
9245
9601
|
# Optional. See sinks.create for a description of this field. When updating a
|
9246
9602
|
# sink, the effect of this field on the value of writer_identity in the updated
|
@@ -9304,11 +9660,11 @@ module Google
|
|
9304
9660
|
# 123456789"
|
9305
9661
|
# @param [Google::Apis::LoggingV2::LogSink] log_sink_object
|
9306
9662
|
# @param [String] custom_writer_identity
|
9307
|
-
# Optional.
|
9308
|
-
# the log entries. The format must be serviceAccount:some@email. This
|
9309
|
-
# only be specified
|
9310
|
-
# project.
|
9311
|
-
# generated.
|
9663
|
+
# Optional. The service account provided by the caller that will be used to
|
9664
|
+
# write the log entries. The format must be serviceAccount:some@email. This
|
9665
|
+
# field can only be specified when you are routing logs to a log bucket that is
|
9666
|
+
# in a different project than the sink. When not specified, a Logging service
|
9667
|
+
# account will automatically be generated.
|
9312
9668
|
# @param [Boolean] unique_writer_identity
|
9313
9669
|
# Optional. Determines the kind of IAM identity returned as writer_identity in
|
9314
9670
|
# the new sink. If this value is omitted or set to false, and if the sink's
|
@@ -9483,11 +9839,11 @@ module Google
|
|
9483
9839
|
# example:"projects/my-project/sinks/my-sink"
|
9484
9840
|
# @param [Google::Apis::LoggingV2::LogSink] log_sink_object
|
9485
9841
|
# @param [String] custom_writer_identity
|
9486
|
-
# Optional.
|
9487
|
-
# the log entries. The format must be serviceAccount:some@email. This
|
9488
|
-
# only be specified
|
9489
|
-
# project.
|
9490
|
-
# generated.
|
9842
|
+
# Optional. The service account provided by the caller that will be used to
|
9843
|
+
# write the log entries. The format must be serviceAccount:some@email. This
|
9844
|
+
# field can only be specified when you are routing logs to a log bucket that is
|
9845
|
+
# in a different project than the sink. When not specified, a Logging service
|
9846
|
+
# account will automatically be generated.
|
9491
9847
|
# @param [Boolean] unique_writer_identity
|
9492
9848
|
# Optional. See sinks.create for a description of this field. When updating a
|
9493
9849
|
# sink, the effect of this field on the value of writer_identity in the updated
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-logging_v2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.70.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-06-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -16,7 +16,7 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.
|
19
|
+
version: 0.15.0
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
22
|
version: 2.a
|
@@ -26,7 +26,7 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: 0.
|
29
|
+
version: 0.15.0
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 2.a
|
@@ -58,7 +58,7 @@ licenses:
|
|
58
58
|
metadata:
|
59
59
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
60
60
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-logging_v2/CHANGELOG.md
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-logging_v2/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-logging_v2/v0.70.0
|
62
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-logging_v2
|
63
63
|
post_install_message:
|
64
64
|
rdoc_options: []
|