google-apis-logging_v2 0.45.0 → 0.47.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: 181ecb375fd2e61231d5017dedba80354ffd57e44f990cc08457c9fafba66e48
|
4
|
+
data.tar.gz: 25e74ffc112e69fe93049a013a163a0350fa42e59d06bc15b71fc0af52aa6bee
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1b27e04d43752da67a7dda0c4101364fdac634908826c36100cf331604af145e3668c1df171324c69a8d6f62124e70eb150a5f8532ab913ba693b3b8d7180636
|
7
|
+
data.tar.gz: aeb1a75128302d43888f2324cdd4ab3e4b22df15c87dede88ed3bc085777c254bffe3daf7261cf08c3c1e68c6af7118f34c8c0f1bd2d5366d7b990735e30db13
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,13 @@
|
|
1
1
|
# Release history for google-apis-logging_v2
|
2
2
|
|
3
|
+
### v0.47.0 (2023-06-11)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20230531
|
6
|
+
|
7
|
+
### v0.46.0 (2023-05-28)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20230517
|
10
|
+
|
3
11
|
### v0.45.0 (2023-05-14)
|
4
12
|
|
5
13
|
* Regenerated from discovery document revision 20230505
|
@@ -970,10 +970,13 @@ module Google
|
|
970
970
|
class ListLogEntriesRequest
|
971
971
|
include Google::Apis::Core::Hashable
|
972
972
|
|
973
|
-
# Optional.
|
974
|
-
#
|
975
|
-
#
|
976
|
-
#
|
973
|
+
# Optional. A filter that chooses which log entries to return. For more
|
974
|
+
# information, see Logging query language (https://cloud.google.com/logging/docs/
|
975
|
+
# view/logging-query-language).Only log entries that match the filter are
|
976
|
+
# returned. An empty filter matches all log entries in the resources listed in
|
977
|
+
# resource_names. Referencing a parent resource that is not listed in
|
978
|
+
# resource_names will cause the filter to return no results. The maximum length
|
979
|
+
# of a filter is 20,000 characters.
|
977
980
|
# Corresponds to the JSON property `filter`
|
978
981
|
# @return [String]
|
979
982
|
attr_accessor :filter
|
@@ -1970,11 +1973,11 @@ module Google
|
|
1970
1973
|
|
1971
1974
|
# Required. The export destination: "storage.googleapis.com/[GCS_BUCKET]" "
|
1972
1975
|
# bigquery.googleapis.com/projects/[PROJECT_ID]/datasets/[DATASET]" "pubsub.
|
1973
|
-
# googleapis.com/projects/[PROJECT_ID]/topics/[TOPIC_ID]"
|
1974
|
-
# writer_identity, set when the sink is
|
1975
|
-
# to the destination or else the log
|
1976
|
-
# information, see Exporting Logs with Sinks (
|
1977
|
-
# docs/api/tasks/exporting-logs).
|
1976
|
+
# googleapis.com/projects/[PROJECT_ID]/topics/[TOPIC_ID]" "logging.googleapis.
|
1977
|
+
# com/projects/[PROJECT_ID]" The sink's writer_identity, set when the sink is
|
1978
|
+
# created, must have permission to write to the destination or else the log
|
1979
|
+
# entries are not exported. For more information, see Exporting Logs with Sinks (
|
1980
|
+
# https://cloud.google.com/logging/docs/api/tasks/exporting-logs).
|
1978
1981
|
# Corresponds to the JSON property `destination`
|
1979
1982
|
# @return [String]
|
1980
1983
|
attr_accessor :destination
|
@@ -2817,6 +2820,13 @@ module Google
|
|
2817
2820
|
# @return [String]
|
2818
2821
|
attr_accessor :kms_service_account_id
|
2819
2822
|
|
2823
|
+
# Output only. The service account for the given container. Sinks use this
|
2824
|
+
# service account as their writer_identity if no custom service account is
|
2825
|
+
# provided.
|
2826
|
+
# Corresponds to the JSON property `loggingServiceAccountId`
|
2827
|
+
# @return [String]
|
2828
|
+
attr_accessor :logging_service_account_id
|
2829
|
+
|
2820
2830
|
# Output only. The resource name of the settings.
|
2821
2831
|
# Corresponds to the JSON property `name`
|
2822
2832
|
# @return [String]
|
@@ -2838,6 +2848,7 @@ module Google
|
|
2838
2848
|
@disable_default_sink = args[:disable_default_sink] if args.key?(:disable_default_sink)
|
2839
2849
|
@kms_key_name = args[:kms_key_name] if args.key?(:kms_key_name)
|
2840
2850
|
@kms_service_account_id = args[:kms_service_account_id] if args.key?(:kms_service_account_id)
|
2851
|
+
@logging_service_account_id = args[:logging_service_account_id] if args.key?(:logging_service_account_id)
|
2841
2852
|
@name = args[:name] if args.key?(:name)
|
2842
2853
|
@storage_location = args[:storage_location] if args.key?(:storage_location)
|
2843
2854
|
end
|
@@ -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.47.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
22
|
GENERATOR_VERSION = "0.12.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20230531"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -1004,6 +1004,7 @@ module Google
|
|
1004
1004
|
property :disable_default_sink, as: 'disableDefaultSink'
|
1005
1005
|
property :kms_key_name, as: 'kmsKeyName'
|
1006
1006
|
property :kms_service_account_id, as: 'kmsServiceAccountId'
|
1007
|
+
property :logging_service_account_id, as: 'loggingServiceAccountId'
|
1007
1008
|
property :name, as: 'name'
|
1008
1009
|
property :storage_location, as: 'storageLocation'
|
1009
1010
|
end
|
@@ -1353,6 +1353,11 @@ module Google
|
|
1353
1353
|
# folders/[FOLDER_ID]" For examples:"projects/my-project" "organizations/
|
1354
1354
|
# 123456789"
|
1355
1355
|
# @param [Google::Apis::LoggingV2::LogSink] log_sink_object
|
1356
|
+
# @param [String] custom_writer_identity
|
1357
|
+
# Optional. A service account provided by the caller that will be used to write
|
1358
|
+
# the log entries. Must be of format serviceAccount:some@email. This can only be
|
1359
|
+
# specified if writing to a destination outside the sink's project. If not
|
1360
|
+
# specified, a p4 service account will automatically be generated.
|
1356
1361
|
# @param [Boolean] unique_writer_identity
|
1357
1362
|
# Optional. Determines the kind of IAM identity returned as writer_identity in
|
1358
1363
|
# the new sink. If this value is omitted or set to false, and if the sink's
|
@@ -1380,13 +1385,14 @@ module Google
|
|
1380
1385
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1381
1386
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1382
1387
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1383
|
-
def create_billing_account_sink(parent, log_sink_object = nil, unique_writer_identity: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1388
|
+
def create_billing_account_sink(parent, log_sink_object = nil, custom_writer_identity: nil, unique_writer_identity: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1384
1389
|
command = make_simple_command(:post, 'v2/{+parent}/sinks', options)
|
1385
1390
|
command.request_representation = Google::Apis::LoggingV2::LogSink::Representation
|
1386
1391
|
command.request_object = log_sink_object
|
1387
1392
|
command.response_representation = Google::Apis::LoggingV2::LogSink::Representation
|
1388
1393
|
command.response_class = Google::Apis::LoggingV2::LogSink
|
1389
1394
|
command.params['parent'] = parent unless parent.nil?
|
1395
|
+
command.query['customWriterIdentity'] = custom_writer_identity unless custom_writer_identity.nil?
|
1390
1396
|
command.query['uniqueWriterIdentity'] = unique_writer_identity unless unique_writer_identity.nil?
|
1391
1397
|
command.query['fields'] = fields unless fields.nil?
|
1392
1398
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
@@ -1514,6 +1520,11 @@ module Google
|
|
1514
1520
|
# BILLING_ACCOUNT_ID]/sinks/[SINK_ID]" "folders/[FOLDER_ID]/sinks/[SINK_ID]" For
|
1515
1521
|
# example:"projects/my-project/sinks/my-sink"
|
1516
1522
|
# @param [Google::Apis::LoggingV2::LogSink] log_sink_object
|
1523
|
+
# @param [String] custom_writer_identity
|
1524
|
+
# Optional. A service account provided by the caller that will be used to write
|
1525
|
+
# the log entries. Must be of format serviceAccount:some@email. This can only be
|
1526
|
+
# specified if writing to a destination outside the sink's project. If not
|
1527
|
+
# specified, a p4 service account will automatically be generated.
|
1517
1528
|
# @param [Boolean] unique_writer_identity
|
1518
1529
|
# Optional. See sinks.create for a description of this field. When updating a
|
1519
1530
|
# sink, the effect of this field on the value of writer_identity in the updated
|
@@ -1550,13 +1561,14 @@ module Google
|
|
1550
1561
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1551
1562
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1552
1563
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1553
|
-
def patch_billing_account_sink(sink_name, log_sink_object = nil, unique_writer_identity: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1564
|
+
def patch_billing_account_sink(sink_name, log_sink_object = nil, custom_writer_identity: nil, unique_writer_identity: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1554
1565
|
command = make_simple_command(:patch, 'v2/{+sinkName}', options)
|
1555
1566
|
command.request_representation = Google::Apis::LoggingV2::LogSink::Representation
|
1556
1567
|
command.request_object = log_sink_object
|
1557
1568
|
command.response_representation = Google::Apis::LoggingV2::LogSink::Representation
|
1558
1569
|
command.response_class = Google::Apis::LoggingV2::LogSink
|
1559
1570
|
command.params['sinkName'] = sink_name unless sink_name.nil?
|
1571
|
+
command.query['customWriterIdentity'] = custom_writer_identity unless custom_writer_identity.nil?
|
1560
1572
|
command.query['uniqueWriterIdentity'] = unique_writer_identity unless unique_writer_identity.nil?
|
1561
1573
|
command.query['updateMask'] = update_mask unless update_mask.nil?
|
1562
1574
|
command.query['fields'] = fields unless fields.nil?
|
@@ -1574,6 +1586,11 @@ module Google
|
|
1574
1586
|
# BILLING_ACCOUNT_ID]/sinks/[SINK_ID]" "folders/[FOLDER_ID]/sinks/[SINK_ID]" For
|
1575
1587
|
# example:"projects/my-project/sinks/my-sink"
|
1576
1588
|
# @param [Google::Apis::LoggingV2::LogSink] log_sink_object
|
1589
|
+
# @param [String] custom_writer_identity
|
1590
|
+
# Optional. A service account provided by the caller that will be used to write
|
1591
|
+
# the log entries. Must be of format serviceAccount:some@email. This can only be
|
1592
|
+
# specified if writing to a destination outside the sink's project. If not
|
1593
|
+
# specified, a p4 service account will automatically be generated.
|
1577
1594
|
# @param [Boolean] unique_writer_identity
|
1578
1595
|
# Optional. See sinks.create for a description of this field. When updating a
|
1579
1596
|
# sink, the effect of this field on the value of writer_identity in the updated
|
@@ -1610,13 +1627,14 @@ module Google
|
|
1610
1627
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1611
1628
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1612
1629
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1613
|
-
def update_billing_account_sink(sink_name, log_sink_object = nil, unique_writer_identity: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1630
|
+
def update_billing_account_sink(sink_name, log_sink_object = nil, custom_writer_identity: nil, unique_writer_identity: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1614
1631
|
command = make_simple_command(:put, 'v2/{+sinkName}', options)
|
1615
1632
|
command.request_representation = Google::Apis::LoggingV2::LogSink::Representation
|
1616
1633
|
command.request_object = log_sink_object
|
1617
1634
|
command.response_representation = Google::Apis::LoggingV2::LogSink::Representation
|
1618
1635
|
command.response_class = Google::Apis::LoggingV2::LogSink
|
1619
1636
|
command.params['sinkName'] = sink_name unless sink_name.nil?
|
1637
|
+
command.query['customWriterIdentity'] = custom_writer_identity unless custom_writer_identity.nil?
|
1620
1638
|
command.query['uniqueWriterIdentity'] = unique_writer_identity unless unique_writer_identity.nil?
|
1621
1639
|
command.query['updateMask'] = update_mask unless update_mask.nil?
|
1622
1640
|
command.query['fields'] = fields unless fields.nil?
|
@@ -3300,6 +3318,11 @@ module Google
|
|
3300
3318
|
# folders/[FOLDER_ID]" For examples:"projects/my-project" "organizations/
|
3301
3319
|
# 123456789"
|
3302
3320
|
# @param [Google::Apis::LoggingV2::LogSink] log_sink_object
|
3321
|
+
# @param [String] custom_writer_identity
|
3322
|
+
# Optional. A service account provided by the caller that will be used to write
|
3323
|
+
# the log entries. Must be of format serviceAccount:some@email. This can only be
|
3324
|
+
# specified if writing to a destination outside the sink's project. If not
|
3325
|
+
# specified, a p4 service account will automatically be generated.
|
3303
3326
|
# @param [Boolean] unique_writer_identity
|
3304
3327
|
# Optional. Determines the kind of IAM identity returned as writer_identity in
|
3305
3328
|
# the new sink. If this value is omitted or set to false, and if the sink's
|
@@ -3327,13 +3350,14 @@ module Google
|
|
3327
3350
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
3328
3351
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
3329
3352
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
3330
|
-
def create_folder_sink(parent, log_sink_object = nil, unique_writer_identity: nil, fields: nil, quota_user: nil, options: nil, &block)
|
3353
|
+
def create_folder_sink(parent, log_sink_object = nil, custom_writer_identity: nil, unique_writer_identity: nil, fields: nil, quota_user: nil, options: nil, &block)
|
3331
3354
|
command = make_simple_command(:post, 'v2/{+parent}/sinks', options)
|
3332
3355
|
command.request_representation = Google::Apis::LoggingV2::LogSink::Representation
|
3333
3356
|
command.request_object = log_sink_object
|
3334
3357
|
command.response_representation = Google::Apis::LoggingV2::LogSink::Representation
|
3335
3358
|
command.response_class = Google::Apis::LoggingV2::LogSink
|
3336
3359
|
command.params['parent'] = parent unless parent.nil?
|
3360
|
+
command.query['customWriterIdentity'] = custom_writer_identity unless custom_writer_identity.nil?
|
3337
3361
|
command.query['uniqueWriterIdentity'] = unique_writer_identity unless unique_writer_identity.nil?
|
3338
3362
|
command.query['fields'] = fields unless fields.nil?
|
3339
3363
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
@@ -3461,6 +3485,11 @@ module Google
|
|
3461
3485
|
# BILLING_ACCOUNT_ID]/sinks/[SINK_ID]" "folders/[FOLDER_ID]/sinks/[SINK_ID]" For
|
3462
3486
|
# example:"projects/my-project/sinks/my-sink"
|
3463
3487
|
# @param [Google::Apis::LoggingV2::LogSink] log_sink_object
|
3488
|
+
# @param [String] custom_writer_identity
|
3489
|
+
# Optional. A service account provided by the caller that will be used to write
|
3490
|
+
# the log entries. Must be of format serviceAccount:some@email. This can only be
|
3491
|
+
# specified if writing to a destination outside the sink's project. If not
|
3492
|
+
# specified, a p4 service account will automatically be generated.
|
3464
3493
|
# @param [Boolean] unique_writer_identity
|
3465
3494
|
# Optional. See sinks.create for a description of this field. When updating a
|
3466
3495
|
# sink, the effect of this field on the value of writer_identity in the updated
|
@@ -3497,13 +3526,14 @@ module Google
|
|
3497
3526
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
3498
3527
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
3499
3528
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
3500
|
-
def patch_folder_sink(sink_name, log_sink_object = nil, unique_writer_identity: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
3529
|
+
def patch_folder_sink(sink_name, log_sink_object = nil, custom_writer_identity: nil, unique_writer_identity: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
3501
3530
|
command = make_simple_command(:patch, 'v2/{+sinkName}', options)
|
3502
3531
|
command.request_representation = Google::Apis::LoggingV2::LogSink::Representation
|
3503
3532
|
command.request_object = log_sink_object
|
3504
3533
|
command.response_representation = Google::Apis::LoggingV2::LogSink::Representation
|
3505
3534
|
command.response_class = Google::Apis::LoggingV2::LogSink
|
3506
3535
|
command.params['sinkName'] = sink_name unless sink_name.nil?
|
3536
|
+
command.query['customWriterIdentity'] = custom_writer_identity unless custom_writer_identity.nil?
|
3507
3537
|
command.query['uniqueWriterIdentity'] = unique_writer_identity unless unique_writer_identity.nil?
|
3508
3538
|
command.query['updateMask'] = update_mask unless update_mask.nil?
|
3509
3539
|
command.query['fields'] = fields unless fields.nil?
|
@@ -3521,6 +3551,11 @@ module Google
|
|
3521
3551
|
# BILLING_ACCOUNT_ID]/sinks/[SINK_ID]" "folders/[FOLDER_ID]/sinks/[SINK_ID]" For
|
3522
3552
|
# example:"projects/my-project/sinks/my-sink"
|
3523
3553
|
# @param [Google::Apis::LoggingV2::LogSink] log_sink_object
|
3554
|
+
# @param [String] custom_writer_identity
|
3555
|
+
# Optional. A service account provided by the caller that will be used to write
|
3556
|
+
# the log entries. Must be of format serviceAccount:some@email. This can only be
|
3557
|
+
# specified if writing to a destination outside the sink's project. If not
|
3558
|
+
# specified, a p4 service account will automatically be generated.
|
3524
3559
|
# @param [Boolean] unique_writer_identity
|
3525
3560
|
# Optional. See sinks.create for a description of this field. When updating a
|
3526
3561
|
# sink, the effect of this field on the value of writer_identity in the updated
|
@@ -3557,13 +3592,14 @@ module Google
|
|
3557
3592
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
3558
3593
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
3559
3594
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
3560
|
-
def update_folder_sink(sink_name, log_sink_object = nil, unique_writer_identity: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
3595
|
+
def update_folder_sink(sink_name, log_sink_object = nil, custom_writer_identity: nil, unique_writer_identity: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
3561
3596
|
command = make_simple_command(:put, 'v2/{+sinkName}', options)
|
3562
3597
|
command.request_representation = Google::Apis::LoggingV2::LogSink::Representation
|
3563
3598
|
command.request_object = log_sink_object
|
3564
3599
|
command.response_representation = Google::Apis::LoggingV2::LogSink::Representation
|
3565
3600
|
command.response_class = Google::Apis::LoggingV2::LogSink
|
3566
3601
|
command.params['sinkName'] = sink_name unless sink_name.nil?
|
3602
|
+
command.query['customWriterIdentity'] = custom_writer_identity unless custom_writer_identity.nil?
|
3567
3603
|
command.query['uniqueWriterIdentity'] = unique_writer_identity unless unique_writer_identity.nil?
|
3568
3604
|
command.query['updateMask'] = update_mask unless update_mask.nil?
|
3569
3605
|
command.query['fields'] = fields unless fields.nil?
|
@@ -5978,6 +6014,11 @@ module Google
|
|
5978
6014
|
# folders/[FOLDER_ID]" For examples:"projects/my-project" "organizations/
|
5979
6015
|
# 123456789"
|
5980
6016
|
# @param [Google::Apis::LoggingV2::LogSink] log_sink_object
|
6017
|
+
# @param [String] custom_writer_identity
|
6018
|
+
# Optional. A service account provided by the caller that will be used to write
|
6019
|
+
# the log entries. Must be of format serviceAccount:some@email. This can only be
|
6020
|
+
# specified if writing to a destination outside the sink's project. If not
|
6021
|
+
# specified, a p4 service account will automatically be generated.
|
5981
6022
|
# @param [Boolean] unique_writer_identity
|
5982
6023
|
# Optional. Determines the kind of IAM identity returned as writer_identity in
|
5983
6024
|
# the new sink. If this value is omitted or set to false, and if the sink's
|
@@ -6005,13 +6046,14 @@ module Google
|
|
6005
6046
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
6006
6047
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
6007
6048
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
6008
|
-
def create_organization_sink(parent, log_sink_object = nil, unique_writer_identity: nil, fields: nil, quota_user: nil, options: nil, &block)
|
6049
|
+
def create_organization_sink(parent, log_sink_object = nil, custom_writer_identity: nil, unique_writer_identity: nil, fields: nil, quota_user: nil, options: nil, &block)
|
6009
6050
|
command = make_simple_command(:post, 'v2/{+parent}/sinks', options)
|
6010
6051
|
command.request_representation = Google::Apis::LoggingV2::LogSink::Representation
|
6011
6052
|
command.request_object = log_sink_object
|
6012
6053
|
command.response_representation = Google::Apis::LoggingV2::LogSink::Representation
|
6013
6054
|
command.response_class = Google::Apis::LoggingV2::LogSink
|
6014
6055
|
command.params['parent'] = parent unless parent.nil?
|
6056
|
+
command.query['customWriterIdentity'] = custom_writer_identity unless custom_writer_identity.nil?
|
6015
6057
|
command.query['uniqueWriterIdentity'] = unique_writer_identity unless unique_writer_identity.nil?
|
6016
6058
|
command.query['fields'] = fields unless fields.nil?
|
6017
6059
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
@@ -6139,6 +6181,11 @@ module Google
|
|
6139
6181
|
# BILLING_ACCOUNT_ID]/sinks/[SINK_ID]" "folders/[FOLDER_ID]/sinks/[SINK_ID]" For
|
6140
6182
|
# example:"projects/my-project/sinks/my-sink"
|
6141
6183
|
# @param [Google::Apis::LoggingV2::LogSink] log_sink_object
|
6184
|
+
# @param [String] custom_writer_identity
|
6185
|
+
# Optional. A service account provided by the caller that will be used to write
|
6186
|
+
# the log entries. Must be of format serviceAccount:some@email. This can only be
|
6187
|
+
# specified if writing to a destination outside the sink's project. If not
|
6188
|
+
# specified, a p4 service account will automatically be generated.
|
6142
6189
|
# @param [Boolean] unique_writer_identity
|
6143
6190
|
# Optional. See sinks.create for a description of this field. When updating a
|
6144
6191
|
# sink, the effect of this field on the value of writer_identity in the updated
|
@@ -6175,13 +6222,14 @@ module Google
|
|
6175
6222
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
6176
6223
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
6177
6224
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
6178
|
-
def patch_organization_sink(sink_name, log_sink_object = nil, unique_writer_identity: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
6225
|
+
def patch_organization_sink(sink_name, log_sink_object = nil, custom_writer_identity: nil, unique_writer_identity: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
6179
6226
|
command = make_simple_command(:patch, 'v2/{+sinkName}', options)
|
6180
6227
|
command.request_representation = Google::Apis::LoggingV2::LogSink::Representation
|
6181
6228
|
command.request_object = log_sink_object
|
6182
6229
|
command.response_representation = Google::Apis::LoggingV2::LogSink::Representation
|
6183
6230
|
command.response_class = Google::Apis::LoggingV2::LogSink
|
6184
6231
|
command.params['sinkName'] = sink_name unless sink_name.nil?
|
6232
|
+
command.query['customWriterIdentity'] = custom_writer_identity unless custom_writer_identity.nil?
|
6185
6233
|
command.query['uniqueWriterIdentity'] = unique_writer_identity unless unique_writer_identity.nil?
|
6186
6234
|
command.query['updateMask'] = update_mask unless update_mask.nil?
|
6187
6235
|
command.query['fields'] = fields unless fields.nil?
|
@@ -6199,6 +6247,11 @@ module Google
|
|
6199
6247
|
# BILLING_ACCOUNT_ID]/sinks/[SINK_ID]" "folders/[FOLDER_ID]/sinks/[SINK_ID]" For
|
6200
6248
|
# example:"projects/my-project/sinks/my-sink"
|
6201
6249
|
# @param [Google::Apis::LoggingV2::LogSink] log_sink_object
|
6250
|
+
# @param [String] custom_writer_identity
|
6251
|
+
# Optional. A service account provided by the caller that will be used to write
|
6252
|
+
# the log entries. Must be of format serviceAccount:some@email. This can only be
|
6253
|
+
# specified if writing to a destination outside the sink's project. If not
|
6254
|
+
# specified, a p4 service account will automatically be generated.
|
6202
6255
|
# @param [Boolean] unique_writer_identity
|
6203
6256
|
# Optional. See sinks.create for a description of this field. When updating a
|
6204
6257
|
# sink, the effect of this field on the value of writer_identity in the updated
|
@@ -6235,13 +6288,14 @@ module Google
|
|
6235
6288
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
6236
6289
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
6237
6290
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
6238
|
-
def update_organization_sink(sink_name, log_sink_object = nil, unique_writer_identity: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
6291
|
+
def update_organization_sink(sink_name, log_sink_object = nil, custom_writer_identity: nil, unique_writer_identity: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
6239
6292
|
command = make_simple_command(:put, 'v2/{+sinkName}', options)
|
6240
6293
|
command.request_representation = Google::Apis::LoggingV2::LogSink::Representation
|
6241
6294
|
command.request_object = log_sink_object
|
6242
6295
|
command.response_representation = Google::Apis::LoggingV2::LogSink::Representation
|
6243
6296
|
command.response_class = Google::Apis::LoggingV2::LogSink
|
6244
6297
|
command.params['sinkName'] = sink_name unless sink_name.nil?
|
6298
|
+
command.query['customWriterIdentity'] = custom_writer_identity unless custom_writer_identity.nil?
|
6245
6299
|
command.query['uniqueWriterIdentity'] = unique_writer_identity unless unique_writer_identity.nil?
|
6246
6300
|
command.query['updateMask'] = update_mask unless update_mask.nil?
|
6247
6301
|
command.query['fields'] = fields unless fields.nil?
|
@@ -7727,6 +7781,11 @@ module Google
|
|
7727
7781
|
# folders/[FOLDER_ID]" For examples:"projects/my-project" "organizations/
|
7728
7782
|
# 123456789"
|
7729
7783
|
# @param [Google::Apis::LoggingV2::LogSink] log_sink_object
|
7784
|
+
# @param [String] custom_writer_identity
|
7785
|
+
# Optional. A service account provided by the caller that will be used to write
|
7786
|
+
# the log entries. Must be of format serviceAccount:some@email. This can only be
|
7787
|
+
# specified if writing to a destination outside the sink's project. If not
|
7788
|
+
# specified, a p4 service account will automatically be generated.
|
7730
7789
|
# @param [Boolean] unique_writer_identity
|
7731
7790
|
# Optional. Determines the kind of IAM identity returned as writer_identity in
|
7732
7791
|
# the new sink. If this value is omitted or set to false, and if the sink's
|
@@ -7754,13 +7813,14 @@ module Google
|
|
7754
7813
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
7755
7814
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
7756
7815
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
7757
|
-
def create_project_sink(parent, log_sink_object = nil, unique_writer_identity: nil, fields: nil, quota_user: nil, options: nil, &block)
|
7816
|
+
def create_project_sink(parent, log_sink_object = nil, custom_writer_identity: nil, unique_writer_identity: nil, fields: nil, quota_user: nil, options: nil, &block)
|
7758
7817
|
command = make_simple_command(:post, 'v2/{+parent}/sinks', options)
|
7759
7818
|
command.request_representation = Google::Apis::LoggingV2::LogSink::Representation
|
7760
7819
|
command.request_object = log_sink_object
|
7761
7820
|
command.response_representation = Google::Apis::LoggingV2::LogSink::Representation
|
7762
7821
|
command.response_class = Google::Apis::LoggingV2::LogSink
|
7763
7822
|
command.params['parent'] = parent unless parent.nil?
|
7823
|
+
command.query['customWriterIdentity'] = custom_writer_identity unless custom_writer_identity.nil?
|
7764
7824
|
command.query['uniqueWriterIdentity'] = unique_writer_identity unless unique_writer_identity.nil?
|
7765
7825
|
command.query['fields'] = fields unless fields.nil?
|
7766
7826
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
@@ -7888,6 +7948,11 @@ module Google
|
|
7888
7948
|
# BILLING_ACCOUNT_ID]/sinks/[SINK_ID]" "folders/[FOLDER_ID]/sinks/[SINK_ID]" For
|
7889
7949
|
# example:"projects/my-project/sinks/my-sink"
|
7890
7950
|
# @param [Google::Apis::LoggingV2::LogSink] log_sink_object
|
7951
|
+
# @param [String] custom_writer_identity
|
7952
|
+
# Optional. A service account provided by the caller that will be used to write
|
7953
|
+
# the log entries. Must be of format serviceAccount:some@email. This can only be
|
7954
|
+
# specified if writing to a destination outside the sink's project. If not
|
7955
|
+
# specified, a p4 service account will automatically be generated.
|
7891
7956
|
# @param [Boolean] unique_writer_identity
|
7892
7957
|
# Optional. See sinks.create for a description of this field. When updating a
|
7893
7958
|
# sink, the effect of this field on the value of writer_identity in the updated
|
@@ -7924,13 +7989,14 @@ module Google
|
|
7924
7989
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
7925
7990
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
7926
7991
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
7927
|
-
def patch_project_sink(sink_name, log_sink_object = nil, unique_writer_identity: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
7992
|
+
def patch_project_sink(sink_name, log_sink_object = nil, custom_writer_identity: nil, unique_writer_identity: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
7928
7993
|
command = make_simple_command(:patch, 'v2/{+sinkName}', options)
|
7929
7994
|
command.request_representation = Google::Apis::LoggingV2::LogSink::Representation
|
7930
7995
|
command.request_object = log_sink_object
|
7931
7996
|
command.response_representation = Google::Apis::LoggingV2::LogSink::Representation
|
7932
7997
|
command.response_class = Google::Apis::LoggingV2::LogSink
|
7933
7998
|
command.params['sinkName'] = sink_name unless sink_name.nil?
|
7999
|
+
command.query['customWriterIdentity'] = custom_writer_identity unless custom_writer_identity.nil?
|
7934
8000
|
command.query['uniqueWriterIdentity'] = unique_writer_identity unless unique_writer_identity.nil?
|
7935
8001
|
command.query['updateMask'] = update_mask unless update_mask.nil?
|
7936
8002
|
command.query['fields'] = fields unless fields.nil?
|
@@ -7948,6 +8014,11 @@ module Google
|
|
7948
8014
|
# BILLING_ACCOUNT_ID]/sinks/[SINK_ID]" "folders/[FOLDER_ID]/sinks/[SINK_ID]" For
|
7949
8015
|
# example:"projects/my-project/sinks/my-sink"
|
7950
8016
|
# @param [Google::Apis::LoggingV2::LogSink] log_sink_object
|
8017
|
+
# @param [String] custom_writer_identity
|
8018
|
+
# Optional. A service account provided by the caller that will be used to write
|
8019
|
+
# the log entries. Must be of format serviceAccount:some@email. This can only be
|
8020
|
+
# specified if writing to a destination outside the sink's project. If not
|
8021
|
+
# specified, a p4 service account will automatically be generated.
|
7951
8022
|
# @param [Boolean] unique_writer_identity
|
7952
8023
|
# Optional. See sinks.create for a description of this field. When updating a
|
7953
8024
|
# sink, the effect of this field on the value of writer_identity in the updated
|
@@ -7984,13 +8055,14 @@ module Google
|
|
7984
8055
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
7985
8056
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
7986
8057
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
7987
|
-
def update_project_sink(sink_name, log_sink_object = nil, unique_writer_identity: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
8058
|
+
def update_project_sink(sink_name, log_sink_object = nil, custom_writer_identity: nil, unique_writer_identity: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
7988
8059
|
command = make_simple_command(:put, 'v2/{+sinkName}', options)
|
7989
8060
|
command.request_representation = Google::Apis::LoggingV2::LogSink::Representation
|
7990
8061
|
command.request_object = log_sink_object
|
7991
8062
|
command.response_representation = Google::Apis::LoggingV2::LogSink::Representation
|
7992
8063
|
command.response_class = Google::Apis::LoggingV2::LogSink
|
7993
8064
|
command.params['sinkName'] = sink_name unless sink_name.nil?
|
8065
|
+
command.query['customWriterIdentity'] = custom_writer_identity unless custom_writer_identity.nil?
|
7994
8066
|
command.query['uniqueWriterIdentity'] = unique_writer_identity unless unique_writer_identity.nil?
|
7995
8067
|
command.query['updateMask'] = update_mask unless update_mask.nil?
|
7996
8068
|
command.query['fields'] = fields unless fields.nil?
|
@@ -8008,6 +8080,11 @@ module Google
|
|
8008
8080
|
# folders/[FOLDER_ID]" For examples:"projects/my-project" "organizations/
|
8009
8081
|
# 123456789"
|
8010
8082
|
# @param [Google::Apis::LoggingV2::LogSink] log_sink_object
|
8083
|
+
# @param [String] custom_writer_identity
|
8084
|
+
# Optional. A service account provided by the caller that will be used to write
|
8085
|
+
# the log entries. Must be of format serviceAccount:some@email. This can only be
|
8086
|
+
# specified if writing to a destination outside the sink's project. If not
|
8087
|
+
# specified, a p4 service account will automatically be generated.
|
8011
8088
|
# @param [Boolean] unique_writer_identity
|
8012
8089
|
# Optional. Determines the kind of IAM identity returned as writer_identity in
|
8013
8090
|
# the new sink. If this value is omitted or set to false, and if the sink's
|
@@ -8035,13 +8112,14 @@ module Google
|
|
8035
8112
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
8036
8113
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
8037
8114
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
8038
|
-
def create_sink(parent, log_sink_object = nil, unique_writer_identity: nil, fields: nil, quota_user: nil, options: nil, &block)
|
8115
|
+
def create_sink(parent, log_sink_object = nil, custom_writer_identity: nil, unique_writer_identity: nil, fields: nil, quota_user: nil, options: nil, &block)
|
8039
8116
|
command = make_simple_command(:post, 'v2/{+parent}/sinks', options)
|
8040
8117
|
command.request_representation = Google::Apis::LoggingV2::LogSink::Representation
|
8041
8118
|
command.request_object = log_sink_object
|
8042
8119
|
command.response_representation = Google::Apis::LoggingV2::LogSink::Representation
|
8043
8120
|
command.response_class = Google::Apis::LoggingV2::LogSink
|
8044
8121
|
command.params['parent'] = parent unless parent.nil?
|
8122
|
+
command.query['customWriterIdentity'] = custom_writer_identity unless custom_writer_identity.nil?
|
8045
8123
|
command.query['uniqueWriterIdentity'] = unique_writer_identity unless unique_writer_identity.nil?
|
8046
8124
|
command.query['fields'] = fields unless fields.nil?
|
8047
8125
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
@@ -8169,6 +8247,11 @@ module Google
|
|
8169
8247
|
# BILLING_ACCOUNT_ID]/sinks/[SINK_ID]" "folders/[FOLDER_ID]/sinks/[SINK_ID]" For
|
8170
8248
|
# example:"projects/my-project/sinks/my-sink"
|
8171
8249
|
# @param [Google::Apis::LoggingV2::LogSink] log_sink_object
|
8250
|
+
# @param [String] custom_writer_identity
|
8251
|
+
# Optional. A service account provided by the caller that will be used to write
|
8252
|
+
# the log entries. Must be of format serviceAccount:some@email. This can only be
|
8253
|
+
# specified if writing to a destination outside the sink's project. If not
|
8254
|
+
# specified, a p4 service account will automatically be generated.
|
8172
8255
|
# @param [Boolean] unique_writer_identity
|
8173
8256
|
# Optional. See sinks.create for a description of this field. When updating a
|
8174
8257
|
# sink, the effect of this field on the value of writer_identity in the updated
|
@@ -8205,13 +8288,14 @@ module Google
|
|
8205
8288
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
8206
8289
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
8207
8290
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
8208
|
-
def update_sink(sink_name, log_sink_object = nil, unique_writer_identity: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
8291
|
+
def update_sink(sink_name, log_sink_object = nil, custom_writer_identity: nil, unique_writer_identity: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
8209
8292
|
command = make_simple_command(:put, 'v2/{+sinkName}', options)
|
8210
8293
|
command.request_representation = Google::Apis::LoggingV2::LogSink::Representation
|
8211
8294
|
command.request_object = log_sink_object
|
8212
8295
|
command.response_representation = Google::Apis::LoggingV2::LogSink::Representation
|
8213
8296
|
command.response_class = Google::Apis::LoggingV2::LogSink
|
8214
8297
|
command.params['sinkName'] = sink_name unless sink_name.nil?
|
8298
|
+
command.query['customWriterIdentity'] = custom_writer_identity unless custom_writer_identity.nil?
|
8215
8299
|
command.query['uniqueWriterIdentity'] = unique_writer_identity unless unique_writer_identity.nil?
|
8216
8300
|
command.query['updateMask'] = update_mask unless update_mask.nil?
|
8217
8301
|
command.query['fields'] = fields unless fields.nil?
|
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.47.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: 2023-
|
11
|
+
date: 2023-06-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -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.47.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: []
|