google-apis-logging_v2 0.46.0 → 0.48.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: aa791323d71563a4e3820e8fa7ce9e63dee2dd9feedbf0aadf153236ce12825d
4
- data.tar.gz: 5eb1bba0e80282705b705517be83e41439848d529f6dde194a05f95bb53c5612
3
+ metadata.gz: 6c1b751f6367752dfb635f7d9f6318e7d5ca440cde804ccad1b076d5d10c400c
4
+ data.tar.gz: 3e73aba2b9024cfcb82fec62880e312d4f1723b56de3271e0c13a9b07644c8f5
5
5
  SHA512:
6
- metadata.gz: 995812e8f600ef35bd701998ab8fe71c3382b2e424ac40fdef3f0a521fe8004357ad18062fbccb43d6ec19997f62dfd0a14584db2399174467a14613ef40c9aa
7
- data.tar.gz: eb69611a2d2b8d32c5f2e19c2be940221c0b30e3d64bc2bd806ce21e46a815fc7daa112289d3b7790302a79fa0036913c4eb9d3a6f074fe8ae93e53967f5ea7b
6
+ metadata.gz: 92d3d1626ecf602b47ea4627c726091062dbe49ba1903e4b818fbc69b0abedb46226c468ef35422e165d2376c0bb61d5c63edef2c5ac838e6ca283a400de68ed
7
+ data.tar.gz: 8cc68c0df8a5fcaf413fe1a147e053f26d63d89cb6e4bd98e256f746985f7705735b124fd335d888f9611eb70b788e1fa6d3c76ede7f7cb2de4f09b83759d417
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Release history for google-apis-logging_v2
2
2
 
3
+ ### v0.48.0 (2023-07-02)
4
+
5
+ * Regenerated from discovery document revision 20230623
6
+
7
+ ### v0.47.0 (2023-06-11)
8
+
9
+ * Regenerated from discovery document revision 20230531
10
+
3
11
  ### v0.46.0 (2023-05-28)
4
12
 
5
13
  * Regenerated from discovery document revision 20230517
@@ -970,10 +970,13 @@ module Google
970
970
  class ListLogEntriesRequest
971
971
  include Google::Apis::Core::Hashable
972
972
 
973
- # Optional. Only log entries that match the filter are returned. An empty filter
974
- # matches all log entries in the resources listed in resource_names. Referencing
975
- # a parent resource that is not listed in resource_names will cause the filter
976
- # to return no results. The maximum length of a filter is 20,000 characters.
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]" The sink's
1974
- # writer_identity, set when the sink is created, must have permission to write
1975
- # to the destination or else the log entries are not exported. For more
1976
- # information, see Exporting Logs with Sinks (https://cloud.google.com/logging/
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
@@ -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.46.0"
19
+ GEM_VERSION = "0.48.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 = "20230517"
25
+ REVISION = "20230623"
26
26
  end
27
27
  end
28
28
  end
@@ -1353,6 +1353,12 @@ 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. The format must be serviceAccount:some@email. This field can
1359
+ # only be specified if you are routing logs to a destination outside this sink's
1360
+ # project. If not specified, a Logging service account will automatically be
1361
+ # generated.
1356
1362
  # @param [Boolean] unique_writer_identity
1357
1363
  # Optional. Determines the kind of IAM identity returned as writer_identity in
1358
1364
  # the new sink. If this value is omitted or set to false, and if the sink's
@@ -1380,13 +1386,14 @@ module Google
1380
1386
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1381
1387
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1382
1388
  # @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)
1389
+ 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
1390
  command = make_simple_command(:post, 'v2/{+parent}/sinks', options)
1385
1391
  command.request_representation = Google::Apis::LoggingV2::LogSink::Representation
1386
1392
  command.request_object = log_sink_object
1387
1393
  command.response_representation = Google::Apis::LoggingV2::LogSink::Representation
1388
1394
  command.response_class = Google::Apis::LoggingV2::LogSink
1389
1395
  command.params['parent'] = parent unless parent.nil?
1396
+ command.query['customWriterIdentity'] = custom_writer_identity unless custom_writer_identity.nil?
1390
1397
  command.query['uniqueWriterIdentity'] = unique_writer_identity unless unique_writer_identity.nil?
1391
1398
  command.query['fields'] = fields unless fields.nil?
1392
1399
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -1514,6 +1521,11 @@ module Google
1514
1521
  # BILLING_ACCOUNT_ID]/sinks/[SINK_ID]" "folders/[FOLDER_ID]/sinks/[SINK_ID]" For
1515
1522
  # example:"projects/my-project/sinks/my-sink"
1516
1523
  # @param [Google::Apis::LoggingV2::LogSink] log_sink_object
1524
+ # @param [String] custom_writer_identity
1525
+ # Optional. A service account provided by the caller that will be used to write
1526
+ # the log entries. Must be of format serviceAccount:some@email. This can only be
1527
+ # specified if writing to a destination outside the sink's project. If not
1528
+ # specified, a p4 service account will automatically be generated.
1517
1529
  # @param [Boolean] unique_writer_identity
1518
1530
  # Optional. See sinks.create for a description of this field. When updating a
1519
1531
  # sink, the effect of this field on the value of writer_identity in the updated
@@ -1550,13 +1562,14 @@ module Google
1550
1562
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1551
1563
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1552
1564
  # @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)
1565
+ 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
1566
  command = make_simple_command(:patch, 'v2/{+sinkName}', options)
1555
1567
  command.request_representation = Google::Apis::LoggingV2::LogSink::Representation
1556
1568
  command.request_object = log_sink_object
1557
1569
  command.response_representation = Google::Apis::LoggingV2::LogSink::Representation
1558
1570
  command.response_class = Google::Apis::LoggingV2::LogSink
1559
1571
  command.params['sinkName'] = sink_name unless sink_name.nil?
1572
+ command.query['customWriterIdentity'] = custom_writer_identity unless custom_writer_identity.nil?
1560
1573
  command.query['uniqueWriterIdentity'] = unique_writer_identity unless unique_writer_identity.nil?
1561
1574
  command.query['updateMask'] = update_mask unless update_mask.nil?
1562
1575
  command.query['fields'] = fields unless fields.nil?
@@ -1574,6 +1587,11 @@ module Google
1574
1587
  # BILLING_ACCOUNT_ID]/sinks/[SINK_ID]" "folders/[FOLDER_ID]/sinks/[SINK_ID]" For
1575
1588
  # example:"projects/my-project/sinks/my-sink"
1576
1589
  # @param [Google::Apis::LoggingV2::LogSink] log_sink_object
1590
+ # @param [String] custom_writer_identity
1591
+ # Optional. A service account provided by the caller that will be used to write
1592
+ # the log entries. Must be of format serviceAccount:some@email. This can only be
1593
+ # specified if writing to a destination outside the sink's project. If not
1594
+ # specified, a p4 service account will automatically be generated.
1577
1595
  # @param [Boolean] unique_writer_identity
1578
1596
  # Optional. See sinks.create for a description of this field. When updating a
1579
1597
  # sink, the effect of this field on the value of writer_identity in the updated
@@ -1610,13 +1628,14 @@ module Google
1610
1628
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1611
1629
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1612
1630
  # @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)
1631
+ 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
1632
  command = make_simple_command(:put, 'v2/{+sinkName}', options)
1615
1633
  command.request_representation = Google::Apis::LoggingV2::LogSink::Representation
1616
1634
  command.request_object = log_sink_object
1617
1635
  command.response_representation = Google::Apis::LoggingV2::LogSink::Representation
1618
1636
  command.response_class = Google::Apis::LoggingV2::LogSink
1619
1637
  command.params['sinkName'] = sink_name unless sink_name.nil?
1638
+ command.query['customWriterIdentity'] = custom_writer_identity unless custom_writer_identity.nil?
1620
1639
  command.query['uniqueWriterIdentity'] = unique_writer_identity unless unique_writer_identity.nil?
1621
1640
  command.query['updateMask'] = update_mask unless update_mask.nil?
1622
1641
  command.query['fields'] = fields unless fields.nil?
@@ -3300,6 +3319,12 @@ module Google
3300
3319
  # folders/[FOLDER_ID]" For examples:"projects/my-project" "organizations/
3301
3320
  # 123456789"
3302
3321
  # @param [Google::Apis::LoggingV2::LogSink] log_sink_object
3322
+ # @param [String] custom_writer_identity
3323
+ # Optional. A service account provided by the caller that will be used to write
3324
+ # the log entries. The format must be serviceAccount:some@email. This field can
3325
+ # only be specified if you are routing logs to a destination outside this sink's
3326
+ # project. If not specified, a Logging service account will automatically be
3327
+ # generated.
3303
3328
  # @param [Boolean] unique_writer_identity
3304
3329
  # Optional. Determines the kind of IAM identity returned as writer_identity in
3305
3330
  # the new sink. If this value is omitted or set to false, and if the sink's
@@ -3327,13 +3352,14 @@ module Google
3327
3352
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3328
3353
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3329
3354
  # @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)
3355
+ 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
3356
  command = make_simple_command(:post, 'v2/{+parent}/sinks', options)
3332
3357
  command.request_representation = Google::Apis::LoggingV2::LogSink::Representation
3333
3358
  command.request_object = log_sink_object
3334
3359
  command.response_representation = Google::Apis::LoggingV2::LogSink::Representation
3335
3360
  command.response_class = Google::Apis::LoggingV2::LogSink
3336
3361
  command.params['parent'] = parent unless parent.nil?
3362
+ command.query['customWriterIdentity'] = custom_writer_identity unless custom_writer_identity.nil?
3337
3363
  command.query['uniqueWriterIdentity'] = unique_writer_identity unless unique_writer_identity.nil?
3338
3364
  command.query['fields'] = fields unless fields.nil?
3339
3365
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -3461,6 +3487,11 @@ module Google
3461
3487
  # BILLING_ACCOUNT_ID]/sinks/[SINK_ID]" "folders/[FOLDER_ID]/sinks/[SINK_ID]" For
3462
3488
  # example:"projects/my-project/sinks/my-sink"
3463
3489
  # @param [Google::Apis::LoggingV2::LogSink] log_sink_object
3490
+ # @param [String] custom_writer_identity
3491
+ # Optional. A service account provided by the caller that will be used to write
3492
+ # the log entries. Must be of format serviceAccount:some@email. This can only be
3493
+ # specified if writing to a destination outside the sink's project. If not
3494
+ # specified, a p4 service account will automatically be generated.
3464
3495
  # @param [Boolean] unique_writer_identity
3465
3496
  # Optional. See sinks.create for a description of this field. When updating a
3466
3497
  # sink, the effect of this field on the value of writer_identity in the updated
@@ -3497,13 +3528,14 @@ module Google
3497
3528
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3498
3529
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3499
3530
  # @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)
3531
+ 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
3532
  command = make_simple_command(:patch, 'v2/{+sinkName}', options)
3502
3533
  command.request_representation = Google::Apis::LoggingV2::LogSink::Representation
3503
3534
  command.request_object = log_sink_object
3504
3535
  command.response_representation = Google::Apis::LoggingV2::LogSink::Representation
3505
3536
  command.response_class = Google::Apis::LoggingV2::LogSink
3506
3537
  command.params['sinkName'] = sink_name unless sink_name.nil?
3538
+ command.query['customWriterIdentity'] = custom_writer_identity unless custom_writer_identity.nil?
3507
3539
  command.query['uniqueWriterIdentity'] = unique_writer_identity unless unique_writer_identity.nil?
3508
3540
  command.query['updateMask'] = update_mask unless update_mask.nil?
3509
3541
  command.query['fields'] = fields unless fields.nil?
@@ -3521,6 +3553,11 @@ module Google
3521
3553
  # BILLING_ACCOUNT_ID]/sinks/[SINK_ID]" "folders/[FOLDER_ID]/sinks/[SINK_ID]" For
3522
3554
  # example:"projects/my-project/sinks/my-sink"
3523
3555
  # @param [Google::Apis::LoggingV2::LogSink] log_sink_object
3556
+ # @param [String] custom_writer_identity
3557
+ # Optional. A service account provided by the caller that will be used to write
3558
+ # the log entries. Must be of format serviceAccount:some@email. This can only be
3559
+ # specified if writing to a destination outside the sink's project. If not
3560
+ # specified, a p4 service account will automatically be generated.
3524
3561
  # @param [Boolean] unique_writer_identity
3525
3562
  # Optional. See sinks.create for a description of this field. When updating a
3526
3563
  # sink, the effect of this field on the value of writer_identity in the updated
@@ -3557,13 +3594,14 @@ module Google
3557
3594
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3558
3595
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3559
3596
  # @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)
3597
+ 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
3598
  command = make_simple_command(:put, 'v2/{+sinkName}', options)
3562
3599
  command.request_representation = Google::Apis::LoggingV2::LogSink::Representation
3563
3600
  command.request_object = log_sink_object
3564
3601
  command.response_representation = Google::Apis::LoggingV2::LogSink::Representation
3565
3602
  command.response_class = Google::Apis::LoggingV2::LogSink
3566
3603
  command.params['sinkName'] = sink_name unless sink_name.nil?
3604
+ command.query['customWriterIdentity'] = custom_writer_identity unless custom_writer_identity.nil?
3567
3605
  command.query['uniqueWriterIdentity'] = unique_writer_identity unless unique_writer_identity.nil?
3568
3606
  command.query['updateMask'] = update_mask unless update_mask.nil?
3569
3607
  command.query['fields'] = fields unless fields.nil?
@@ -5978,6 +6016,12 @@ module Google
5978
6016
  # folders/[FOLDER_ID]" For examples:"projects/my-project" "organizations/
5979
6017
  # 123456789"
5980
6018
  # @param [Google::Apis::LoggingV2::LogSink] log_sink_object
6019
+ # @param [String] custom_writer_identity
6020
+ # Optional. A service account provided by the caller that will be used to write
6021
+ # the log entries. The format must be serviceAccount:some@email. This field can
6022
+ # only be specified if you are routing logs to a destination outside this sink's
6023
+ # project. If not specified, a Logging service account will automatically be
6024
+ # generated.
5981
6025
  # @param [Boolean] unique_writer_identity
5982
6026
  # Optional. Determines the kind of IAM identity returned as writer_identity in
5983
6027
  # the new sink. If this value is omitted or set to false, and if the sink's
@@ -6005,13 +6049,14 @@ module Google
6005
6049
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
6006
6050
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
6007
6051
  # @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)
6052
+ 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
6053
  command = make_simple_command(:post, 'v2/{+parent}/sinks', options)
6010
6054
  command.request_representation = Google::Apis::LoggingV2::LogSink::Representation
6011
6055
  command.request_object = log_sink_object
6012
6056
  command.response_representation = Google::Apis::LoggingV2::LogSink::Representation
6013
6057
  command.response_class = Google::Apis::LoggingV2::LogSink
6014
6058
  command.params['parent'] = parent unless parent.nil?
6059
+ command.query['customWriterIdentity'] = custom_writer_identity unless custom_writer_identity.nil?
6015
6060
  command.query['uniqueWriterIdentity'] = unique_writer_identity unless unique_writer_identity.nil?
6016
6061
  command.query['fields'] = fields unless fields.nil?
6017
6062
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -6139,6 +6184,11 @@ module Google
6139
6184
  # BILLING_ACCOUNT_ID]/sinks/[SINK_ID]" "folders/[FOLDER_ID]/sinks/[SINK_ID]" For
6140
6185
  # example:"projects/my-project/sinks/my-sink"
6141
6186
  # @param [Google::Apis::LoggingV2::LogSink] log_sink_object
6187
+ # @param [String] custom_writer_identity
6188
+ # Optional. A service account provided by the caller that will be used to write
6189
+ # the log entries. Must be of format serviceAccount:some@email. This can only be
6190
+ # specified if writing to a destination outside the sink's project. If not
6191
+ # specified, a p4 service account will automatically be generated.
6142
6192
  # @param [Boolean] unique_writer_identity
6143
6193
  # Optional. See sinks.create for a description of this field. When updating a
6144
6194
  # sink, the effect of this field on the value of writer_identity in the updated
@@ -6175,13 +6225,14 @@ module Google
6175
6225
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
6176
6226
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
6177
6227
  # @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)
6228
+ 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
6229
  command = make_simple_command(:patch, 'v2/{+sinkName}', options)
6180
6230
  command.request_representation = Google::Apis::LoggingV2::LogSink::Representation
6181
6231
  command.request_object = log_sink_object
6182
6232
  command.response_representation = Google::Apis::LoggingV2::LogSink::Representation
6183
6233
  command.response_class = Google::Apis::LoggingV2::LogSink
6184
6234
  command.params['sinkName'] = sink_name unless sink_name.nil?
6235
+ command.query['customWriterIdentity'] = custom_writer_identity unless custom_writer_identity.nil?
6185
6236
  command.query['uniqueWriterIdentity'] = unique_writer_identity unless unique_writer_identity.nil?
6186
6237
  command.query['updateMask'] = update_mask unless update_mask.nil?
6187
6238
  command.query['fields'] = fields unless fields.nil?
@@ -6199,6 +6250,11 @@ module Google
6199
6250
  # BILLING_ACCOUNT_ID]/sinks/[SINK_ID]" "folders/[FOLDER_ID]/sinks/[SINK_ID]" For
6200
6251
  # example:"projects/my-project/sinks/my-sink"
6201
6252
  # @param [Google::Apis::LoggingV2::LogSink] log_sink_object
6253
+ # @param [String] custom_writer_identity
6254
+ # Optional. A service account provided by the caller that will be used to write
6255
+ # the log entries. Must be of format serviceAccount:some@email. This can only be
6256
+ # specified if writing to a destination outside the sink's project. If not
6257
+ # specified, a p4 service account will automatically be generated.
6202
6258
  # @param [Boolean] unique_writer_identity
6203
6259
  # Optional. See sinks.create for a description of this field. When updating a
6204
6260
  # sink, the effect of this field on the value of writer_identity in the updated
@@ -6235,13 +6291,14 @@ module Google
6235
6291
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
6236
6292
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
6237
6293
  # @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)
6294
+ 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
6295
  command = make_simple_command(:put, 'v2/{+sinkName}', options)
6240
6296
  command.request_representation = Google::Apis::LoggingV2::LogSink::Representation
6241
6297
  command.request_object = log_sink_object
6242
6298
  command.response_representation = Google::Apis::LoggingV2::LogSink::Representation
6243
6299
  command.response_class = Google::Apis::LoggingV2::LogSink
6244
6300
  command.params['sinkName'] = sink_name unless sink_name.nil?
6301
+ command.query['customWriterIdentity'] = custom_writer_identity unless custom_writer_identity.nil?
6245
6302
  command.query['uniqueWriterIdentity'] = unique_writer_identity unless unique_writer_identity.nil?
6246
6303
  command.query['updateMask'] = update_mask unless update_mask.nil?
6247
6304
  command.query['fields'] = fields unless fields.nil?
@@ -7727,6 +7784,12 @@ module Google
7727
7784
  # folders/[FOLDER_ID]" For examples:"projects/my-project" "organizations/
7728
7785
  # 123456789"
7729
7786
  # @param [Google::Apis::LoggingV2::LogSink] log_sink_object
7787
+ # @param [String] custom_writer_identity
7788
+ # Optional. A service account provided by the caller that will be used to write
7789
+ # the log entries. The format must be serviceAccount:some@email. This field can
7790
+ # only be specified if you are routing logs to a destination outside this sink's
7791
+ # project. If not specified, a Logging service account will automatically be
7792
+ # generated.
7730
7793
  # @param [Boolean] unique_writer_identity
7731
7794
  # Optional. Determines the kind of IAM identity returned as writer_identity in
7732
7795
  # the new sink. If this value is omitted or set to false, and if the sink's
@@ -7754,13 +7817,14 @@ module Google
7754
7817
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
7755
7818
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
7756
7819
  # @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)
7820
+ 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
7821
  command = make_simple_command(:post, 'v2/{+parent}/sinks', options)
7759
7822
  command.request_representation = Google::Apis::LoggingV2::LogSink::Representation
7760
7823
  command.request_object = log_sink_object
7761
7824
  command.response_representation = Google::Apis::LoggingV2::LogSink::Representation
7762
7825
  command.response_class = Google::Apis::LoggingV2::LogSink
7763
7826
  command.params['parent'] = parent unless parent.nil?
7827
+ command.query['customWriterIdentity'] = custom_writer_identity unless custom_writer_identity.nil?
7764
7828
  command.query['uniqueWriterIdentity'] = unique_writer_identity unless unique_writer_identity.nil?
7765
7829
  command.query['fields'] = fields unless fields.nil?
7766
7830
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -7888,6 +7952,11 @@ module Google
7888
7952
  # BILLING_ACCOUNT_ID]/sinks/[SINK_ID]" "folders/[FOLDER_ID]/sinks/[SINK_ID]" For
7889
7953
  # example:"projects/my-project/sinks/my-sink"
7890
7954
  # @param [Google::Apis::LoggingV2::LogSink] log_sink_object
7955
+ # @param [String] custom_writer_identity
7956
+ # Optional. A service account provided by the caller that will be used to write
7957
+ # the log entries. Must be of format serviceAccount:some@email. This can only be
7958
+ # specified if writing to a destination outside the sink's project. If not
7959
+ # specified, a p4 service account will automatically be generated.
7891
7960
  # @param [Boolean] unique_writer_identity
7892
7961
  # Optional. See sinks.create for a description of this field. When updating a
7893
7962
  # sink, the effect of this field on the value of writer_identity in the updated
@@ -7924,13 +7993,14 @@ module Google
7924
7993
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
7925
7994
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
7926
7995
  # @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)
7996
+ 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
7997
  command = make_simple_command(:patch, 'v2/{+sinkName}', options)
7929
7998
  command.request_representation = Google::Apis::LoggingV2::LogSink::Representation
7930
7999
  command.request_object = log_sink_object
7931
8000
  command.response_representation = Google::Apis::LoggingV2::LogSink::Representation
7932
8001
  command.response_class = Google::Apis::LoggingV2::LogSink
7933
8002
  command.params['sinkName'] = sink_name unless sink_name.nil?
8003
+ command.query['customWriterIdentity'] = custom_writer_identity unless custom_writer_identity.nil?
7934
8004
  command.query['uniqueWriterIdentity'] = unique_writer_identity unless unique_writer_identity.nil?
7935
8005
  command.query['updateMask'] = update_mask unless update_mask.nil?
7936
8006
  command.query['fields'] = fields unless fields.nil?
@@ -7948,6 +8018,11 @@ module Google
7948
8018
  # BILLING_ACCOUNT_ID]/sinks/[SINK_ID]" "folders/[FOLDER_ID]/sinks/[SINK_ID]" For
7949
8019
  # example:"projects/my-project/sinks/my-sink"
7950
8020
  # @param [Google::Apis::LoggingV2::LogSink] log_sink_object
8021
+ # @param [String] custom_writer_identity
8022
+ # Optional. A service account provided by the caller that will be used to write
8023
+ # the log entries. Must be of format serviceAccount:some@email. This can only be
8024
+ # specified if writing to a destination outside the sink's project. If not
8025
+ # specified, a p4 service account will automatically be generated.
7951
8026
  # @param [Boolean] unique_writer_identity
7952
8027
  # Optional. See sinks.create for a description of this field. When updating a
7953
8028
  # sink, the effect of this field on the value of writer_identity in the updated
@@ -7984,13 +8059,14 @@ module Google
7984
8059
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
7985
8060
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
7986
8061
  # @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)
8062
+ 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
8063
  command = make_simple_command(:put, 'v2/{+sinkName}', options)
7989
8064
  command.request_representation = Google::Apis::LoggingV2::LogSink::Representation
7990
8065
  command.request_object = log_sink_object
7991
8066
  command.response_representation = Google::Apis::LoggingV2::LogSink::Representation
7992
8067
  command.response_class = Google::Apis::LoggingV2::LogSink
7993
8068
  command.params['sinkName'] = sink_name unless sink_name.nil?
8069
+ command.query['customWriterIdentity'] = custom_writer_identity unless custom_writer_identity.nil?
7994
8070
  command.query['uniqueWriterIdentity'] = unique_writer_identity unless unique_writer_identity.nil?
7995
8071
  command.query['updateMask'] = update_mask unless update_mask.nil?
7996
8072
  command.query['fields'] = fields unless fields.nil?
@@ -8008,6 +8084,12 @@ module Google
8008
8084
  # folders/[FOLDER_ID]" For examples:"projects/my-project" "organizations/
8009
8085
  # 123456789"
8010
8086
  # @param [Google::Apis::LoggingV2::LogSink] log_sink_object
8087
+ # @param [String] custom_writer_identity
8088
+ # Optional. A service account provided by the caller that will be used to write
8089
+ # the log entries. The format must be serviceAccount:some@email. This field can
8090
+ # only be specified if you are routing logs to a destination outside this sink's
8091
+ # project. If not specified, a Logging service account will automatically be
8092
+ # generated.
8011
8093
  # @param [Boolean] unique_writer_identity
8012
8094
  # Optional. Determines the kind of IAM identity returned as writer_identity in
8013
8095
  # the new sink. If this value is omitted or set to false, and if the sink's
@@ -8035,13 +8117,14 @@ module Google
8035
8117
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
8036
8118
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
8037
8119
  # @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)
8120
+ 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
8121
  command = make_simple_command(:post, 'v2/{+parent}/sinks', options)
8040
8122
  command.request_representation = Google::Apis::LoggingV2::LogSink::Representation
8041
8123
  command.request_object = log_sink_object
8042
8124
  command.response_representation = Google::Apis::LoggingV2::LogSink::Representation
8043
8125
  command.response_class = Google::Apis::LoggingV2::LogSink
8044
8126
  command.params['parent'] = parent unless parent.nil?
8127
+ command.query['customWriterIdentity'] = custom_writer_identity unless custom_writer_identity.nil?
8045
8128
  command.query['uniqueWriterIdentity'] = unique_writer_identity unless unique_writer_identity.nil?
8046
8129
  command.query['fields'] = fields unless fields.nil?
8047
8130
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -8169,6 +8252,11 @@ module Google
8169
8252
  # BILLING_ACCOUNT_ID]/sinks/[SINK_ID]" "folders/[FOLDER_ID]/sinks/[SINK_ID]" For
8170
8253
  # example:"projects/my-project/sinks/my-sink"
8171
8254
  # @param [Google::Apis::LoggingV2::LogSink] log_sink_object
8255
+ # @param [String] custom_writer_identity
8256
+ # Optional. A service account provided by the caller that will be used to write
8257
+ # the log entries. Must be of format serviceAccount:some@email. This can only be
8258
+ # specified if writing to a destination outside the sink's project. If not
8259
+ # specified, a p4 service account will automatically be generated.
8172
8260
  # @param [Boolean] unique_writer_identity
8173
8261
  # Optional. See sinks.create for a description of this field. When updating a
8174
8262
  # sink, the effect of this field on the value of writer_identity in the updated
@@ -8205,13 +8293,14 @@ module Google
8205
8293
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
8206
8294
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
8207
8295
  # @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)
8296
+ 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
8297
  command = make_simple_command(:put, 'v2/{+sinkName}', options)
8210
8298
  command.request_representation = Google::Apis::LoggingV2::LogSink::Representation
8211
8299
  command.request_object = log_sink_object
8212
8300
  command.response_representation = Google::Apis::LoggingV2::LogSink::Representation
8213
8301
  command.response_class = Google::Apis::LoggingV2::LogSink
8214
8302
  command.params['sinkName'] = sink_name unless sink_name.nil?
8303
+ command.query['customWriterIdentity'] = custom_writer_identity unless custom_writer_identity.nil?
8215
8304
  command.query['uniqueWriterIdentity'] = unique_writer_identity unless unique_writer_identity.nil?
8216
8305
  command.query['updateMask'] = update_mask unless update_mask.nil?
8217
8306
  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.46.0
4
+ version: 0.48.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-05-28 00:00:00.000000000 Z
11
+ date: 2023-07-02 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.46.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-logging_v2/v0.48.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: []