google-apis-logging_v2 0.22.0 → 0.25.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8dcc03a55fb00400f4202cd2fb8a445865854063c3e2d52137a7bcc225b1fcc5
|
4
|
+
data.tar.gz: '0962df7fc368c976ee25b2d1b1522ab7471c04af0bde8e153df6069bc02c1b63'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bca0e3334d86b33acda3cfbd08e6ff0ff40fafd662464edfb842c764cab4b423197a41d5b9fa8f86ddea57da63d509a005feb8da2911b8076ba55850a6aed36a
|
7
|
+
data.tar.gz: 689159afa0bbe921661ac989ca8edca7d76bc90b55fb467ee9ae976b7aaece0fcfb9088a41700322f030fd1aa88c6d99f0fb3d8edc410035d5d434e9fc00dfee
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,17 @@
|
|
1
1
|
# Release history for google-apis-logging_v2
|
2
2
|
|
3
|
+
### v0.25.0 (2022-03-19)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20220311
|
6
|
+
|
7
|
+
### v0.24.0 (2022-02-19)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20220211
|
10
|
+
|
11
|
+
### v0.23.0 (2022-02-12)
|
12
|
+
|
13
|
+
* Regenerated from discovery document revision 20220204
|
14
|
+
|
3
15
|
### v0.22.0 (2022-02-05)
|
4
16
|
|
5
17
|
* Regenerated from discovery document revision 20220127
|
@@ -156,6 +156,17 @@ module Google
|
|
156
156
|
# @return [String]
|
157
157
|
attr_accessor :kms_key_name
|
158
158
|
|
159
|
+
# The CryptoKeyVersion resource name for the configured Cloud KMS key.KMS key
|
160
|
+
# name format: "projects/[PROJECT_ID]/locations/[LOCATION]/keyRings/[KEYRING]/
|
161
|
+
# cryptoKeys/[KEY]/cryptoKeyVersions/[VERSION]" For example:"projects/my-project/
|
162
|
+
# locations/us-central1/keyRings/my-ring/cryptoKeys/my-key/cryptoKeyVersions/1"
|
163
|
+
# This is a read-only field used to convey the specific configured
|
164
|
+
# CryptoKeyVersion of kms_key that has been configured. It will be populated in
|
165
|
+
# cases where the CMEK settings are bound to a single key version.
|
166
|
+
# Corresponds to the JSON property `kmsKeyVersionName`
|
167
|
+
# @return [String]
|
168
|
+
attr_accessor :kms_key_version_name
|
169
|
+
|
159
170
|
# Output only. The resource name of the CMEK settings.
|
160
171
|
# Corresponds to the JSON property `name`
|
161
172
|
# @return [String]
|
@@ -178,6 +189,7 @@ module Google
|
|
178
189
|
# Update properties of this object
|
179
190
|
def update!(**args)
|
180
191
|
@kms_key_name = args[:kms_key_name] if args.key?(:kms_key_name)
|
192
|
+
@kms_key_version_name = args[:kms_key_version_name] if args.key?(:kms_key_version_name)
|
181
193
|
@name = args[:name] if args.key?(:name)
|
182
194
|
@service_account_id = args[:service_account_id] if args.key?(:service_account_id)
|
183
195
|
end
|
@@ -1162,6 +1174,13 @@ module Google
|
|
1162
1174
|
# @return [String]
|
1163
1175
|
attr_accessor :span_id
|
1164
1176
|
|
1177
|
+
# Additional information used to correlate multiple log entries. Used when a
|
1178
|
+
# single LogEntry would exceed the Google Cloud Logging size limit and is split
|
1179
|
+
# across multiple log entries.
|
1180
|
+
# Corresponds to the JSON property `split`
|
1181
|
+
# @return [Google::Apis::LoggingV2::LogSplit]
|
1182
|
+
attr_accessor :split
|
1183
|
+
|
1165
1184
|
# The log entry payload, represented as a Unicode string (UTF-8).
|
1166
1185
|
# Corresponds to the JSON property `textPayload`
|
1167
1186
|
# @return [String]
|
@@ -1218,6 +1237,7 @@ module Google
|
|
1218
1237
|
@severity = args[:severity] if args.key?(:severity)
|
1219
1238
|
@source_location = args[:source_location] if args.key?(:source_location)
|
1220
1239
|
@span_id = args[:span_id] if args.key?(:span_id)
|
1240
|
+
@split = args[:split] if args.key?(:split)
|
1221
1241
|
@text_payload = args[:text_payload] if args.key?(:text_payload)
|
1222
1242
|
@timestamp = args[:timestamp] if args.key?(:timestamp)
|
1223
1243
|
@trace = args[:trace] if args.key?(:trace)
|
@@ -1675,6 +1695,42 @@ module Google
|
|
1675
1695
|
end
|
1676
1696
|
end
|
1677
1697
|
|
1698
|
+
# Additional information used to correlate multiple log entries. Used when a
|
1699
|
+
# single LogEntry would exceed the Google Cloud Logging size limit and is split
|
1700
|
+
# across multiple log entries.
|
1701
|
+
class LogSplit
|
1702
|
+
include Google::Apis::Core::Hashable
|
1703
|
+
|
1704
|
+
# The index of this LogEntry in the sequence of split log entries. Log entries
|
1705
|
+
# are given |index| values 0, 1, ..., n-1 for a sequence of n log entries.
|
1706
|
+
# Corresponds to the JSON property `index`
|
1707
|
+
# @return [Fixnum]
|
1708
|
+
attr_accessor :index
|
1709
|
+
|
1710
|
+
# The total number of log entries that the original LogEntry was split into.
|
1711
|
+
# Corresponds to the JSON property `totalSplits`
|
1712
|
+
# @return [Fixnum]
|
1713
|
+
attr_accessor :total_splits
|
1714
|
+
|
1715
|
+
# A globally unique identifier for all log entries in a sequence of split log
|
1716
|
+
# entries. All log entries with the same |LogSplit.uid| are assumed to be part
|
1717
|
+
# of the same sequence of split log entries.
|
1718
|
+
# Corresponds to the JSON property `uid`
|
1719
|
+
# @return [String]
|
1720
|
+
attr_accessor :uid
|
1721
|
+
|
1722
|
+
def initialize(**args)
|
1723
|
+
update!(**args)
|
1724
|
+
end
|
1725
|
+
|
1726
|
+
# Update properties of this object
|
1727
|
+
def update!(**args)
|
1728
|
+
@index = args[:index] if args.key?(:index)
|
1729
|
+
@total_splits = args[:total_splits] if args.key?(:total_splits)
|
1730
|
+
@uid = args[:uid] if args.key?(:uid)
|
1731
|
+
end
|
1732
|
+
end
|
1733
|
+
|
1678
1734
|
# Describes a view over log entries in a bucket.
|
1679
1735
|
class LogView
|
1680
1736
|
include Google::Apis::Core::Hashable
|
@@ -2348,6 +2404,34 @@ module Google
|
|
2348
2404
|
attr_accessor :disable_default_sink
|
2349
2405
|
alias_method :disable_default_sink?, :disable_default_sink
|
2350
2406
|
|
2407
|
+
# Optional. The resource name for the configured Cloud KMS key.KMS key name
|
2408
|
+
# format: "projects/[PROJECT_ID]/locations/[LOCATION]/keyRings/[KEYRING]/
|
2409
|
+
# cryptoKeys/[KEY]" For example:"projects/my-project/locations/us-central1/
|
2410
|
+
# keyRings/my-ring/cryptoKeys/my-key"To enable CMEK for the Log Router, set this
|
2411
|
+
# field to a valid kms_key_name for which the associated service account has the
|
2412
|
+
# required roles/cloudkms.cryptoKeyEncrypterDecrypter role assigned for the key.
|
2413
|
+
# The Cloud KMS key used by the Log Router can be updated by changing the
|
2414
|
+
# kms_key_name to a new valid key name. Encryption operations that are in
|
2415
|
+
# progress will be completed with the key that was in use when they started.
|
2416
|
+
# Decryption operations will be completed using the key that was used at the
|
2417
|
+
# time of encryption unless access to that key has been revoked.To disable CMEK
|
2418
|
+
# for the Log Router, set this field to an empty string.See Enabling CMEK for
|
2419
|
+
# Log Router (https://cloud.google.com/logging/docs/routing/managed-encryption)
|
2420
|
+
# for more information.
|
2421
|
+
# Corresponds to the JSON property `kmsKeyName`
|
2422
|
+
# @return [String]
|
2423
|
+
attr_accessor :kms_key_name
|
2424
|
+
|
2425
|
+
# Output only. The service account that will be used by the Log Router to access
|
2426
|
+
# your Cloud KMS key.Before enabling CMEK for Log Router, you must first assign
|
2427
|
+
# the role roles/cloudkms.cryptoKeyEncrypterDecrypter to the service account
|
2428
|
+
# that the Log Router will use to access your Cloud KMS key. Use GetSettings to
|
2429
|
+
# obtain the service account ID.See Enabling CMEK for Log Router (https://cloud.
|
2430
|
+
# google.com/logging/docs/routing/managed-encryption) for more information.
|
2431
|
+
# Corresponds to the JSON property `kmsServiceAccountId`
|
2432
|
+
# @return [String]
|
2433
|
+
attr_accessor :kms_service_account_id
|
2434
|
+
|
2351
2435
|
# Output only. The resource name of the settings.
|
2352
2436
|
# Corresponds to the JSON property `name`
|
2353
2437
|
# @return [String]
|
@@ -2367,6 +2451,8 @@ module Google
|
|
2367
2451
|
# Update properties of this object
|
2368
2452
|
def update!(**args)
|
2369
2453
|
@disable_default_sink = args[:disable_default_sink] if args.key?(:disable_default_sink)
|
2454
|
+
@kms_key_name = args[:kms_key_name] if args.key?(:kms_key_name)
|
2455
|
+
@kms_service_account_id = args[:kms_service_account_id] if args.key?(:kms_service_account_id)
|
2370
2456
|
@name = args[:name] if args.key?(:name)
|
2371
2457
|
@storage_location = args[:storage_location] if args.key?(:storage_location)
|
2372
2458
|
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.25.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
22
|
GENERATOR_VERSION = "0.4.1"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20220311"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -220,6 +220,12 @@ module Google
|
|
220
220
|
include Google::Apis::Core::JsonObjectSupport
|
221
221
|
end
|
222
222
|
|
223
|
+
class LogSplit
|
224
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
225
|
+
|
226
|
+
include Google::Apis::Core::JsonObjectSupport
|
227
|
+
end
|
228
|
+
|
223
229
|
class LogView
|
224
230
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
225
231
|
|
@@ -358,6 +364,7 @@ module Google
|
|
358
364
|
# @private
|
359
365
|
class Representation < Google::Apis::Core::JsonRepresentation
|
360
366
|
property :kms_key_name, as: 'kmsKeyName'
|
367
|
+
property :kms_key_version_name, as: 'kmsKeyVersionName'
|
361
368
|
property :name, as: 'name'
|
362
369
|
property :service_account_id, as: 'serviceAccountId'
|
363
370
|
end
|
@@ -603,6 +610,8 @@ module Google
|
|
603
610
|
property :source_location, as: 'sourceLocation', class: Google::Apis::LoggingV2::LogEntrySourceLocation, decorator: Google::Apis::LoggingV2::LogEntrySourceLocation::Representation
|
604
611
|
|
605
612
|
property :span_id, as: 'spanId'
|
613
|
+
property :split, as: 'split', class: Google::Apis::LoggingV2::LogSplit, decorator: Google::Apis::LoggingV2::LogSplit::Representation
|
614
|
+
|
606
615
|
property :text_payload, as: 'textPayload'
|
607
616
|
property :timestamp, as: 'timestamp'
|
608
617
|
property :trace, as: 'trace'
|
@@ -691,6 +700,15 @@ module Google
|
|
691
700
|
end
|
692
701
|
end
|
693
702
|
|
703
|
+
class LogSplit
|
704
|
+
# @private
|
705
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
706
|
+
property :index, as: 'index'
|
707
|
+
property :total_splits, as: 'totalSplits'
|
708
|
+
property :uid, as: 'uid'
|
709
|
+
end
|
710
|
+
end
|
711
|
+
|
694
712
|
class LogView
|
695
713
|
# @private
|
696
714
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -816,6 +834,8 @@ module Google
|
|
816
834
|
# @private
|
817
835
|
class Representation < Google::Apis::Core::JsonRepresentation
|
818
836
|
property :disable_default_sink, as: 'disableDefaultSink'
|
837
|
+
property :kms_key_name, as: 'kmsKeyName'
|
838
|
+
property :kms_service_account_id, as: 'kmsServiceAccountId'
|
819
839
|
property :name, as: 'name'
|
820
840
|
property :storage_location, as: 'storageLocation'
|
821
841
|
end
|
@@ -1734,6 +1734,57 @@ module Google
|
|
1734
1734
|
execute_or_queue_command(command, &block)
|
1735
1735
|
end
|
1736
1736
|
|
1737
|
+
# Updates the Log Router settings for the given resource.Note: Settings for the
|
1738
|
+
# Log Router can currently only be configured for Google Cloud organizations.
|
1739
|
+
# Once configured, it applies to all projects and folders in the Google Cloud
|
1740
|
+
# organization.UpdateSettings will fail if 1) kms_key_name is invalid, or 2) the
|
1741
|
+
# associated service account does not have the required roles/cloudkms.
|
1742
|
+
# cryptoKeyEncrypterDecrypter role assigned for the key, or 3) access to the key
|
1743
|
+
# is disabled. 4) location_id is not supported by Logging. 5) location_id
|
1744
|
+
# violate OrgPolicy.See Enabling CMEK for Log Router (https://cloud.google.com/
|
1745
|
+
# logging/docs/routing/managed-encryption) for more information.
|
1746
|
+
# @param [String] name
|
1747
|
+
# Required. The resource name for the settings to update. "organizations/[
|
1748
|
+
# ORGANIZATION_ID]/settings" For example:"organizations/12345/settings"Note:
|
1749
|
+
# Settings for the Log Router can currently only be configured for Google Cloud
|
1750
|
+
# organizations. Once configured, it applies to all projects and folders in the
|
1751
|
+
# Google Cloud organization.
|
1752
|
+
# @param [Google::Apis::LoggingV2::Settings] settings_object
|
1753
|
+
# @param [String] update_mask
|
1754
|
+
# Optional. Field mask identifying which fields from settings should be updated.
|
1755
|
+
# A field will be overwritten if and only if it is in the update mask. Output
|
1756
|
+
# only fields cannot be updated.See FieldMask for more information.For example: "
|
1757
|
+
# updateMask=kmsKeyName"
|
1758
|
+
# @param [String] fields
|
1759
|
+
# Selector specifying which fields to include in a partial response.
|
1760
|
+
# @param [String] quota_user
|
1761
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1762
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1763
|
+
# @param [Google::Apis::RequestOptions] options
|
1764
|
+
# Request-specific options
|
1765
|
+
#
|
1766
|
+
# @yield [result, err] Result & error if block supplied
|
1767
|
+
# @yieldparam result [Google::Apis::LoggingV2::Settings] parsed result object
|
1768
|
+
# @yieldparam err [StandardError] error object if request failed
|
1769
|
+
#
|
1770
|
+
# @return [Google::Apis::LoggingV2::Settings]
|
1771
|
+
#
|
1772
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1773
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1774
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1775
|
+
def update_folder_settings(name, settings_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1776
|
+
command = make_simple_command(:patch, 'v2/{+name}/settings', options)
|
1777
|
+
command.request_representation = Google::Apis::LoggingV2::Settings::Representation
|
1778
|
+
command.request_object = settings_object
|
1779
|
+
command.response_representation = Google::Apis::LoggingV2::Settings::Representation
|
1780
|
+
command.response_class = Google::Apis::LoggingV2::Settings
|
1781
|
+
command.params['name'] = name unless name.nil?
|
1782
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
1783
|
+
command.query['fields'] = fields unless fields.nil?
|
1784
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1785
|
+
execute_or_queue_command(command, &block)
|
1786
|
+
end
|
1787
|
+
|
1737
1788
|
# Creates a new exclusion in the _Default sink in a specified parent resource.
|
1738
1789
|
# Only log entries belonging to that resource can be excluded. You can have up
|
1739
1790
|
# to 10 exclusions in a resource.
|
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.25.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: 2022-
|
11
|
+
date: 2022-03-21 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.25.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: []
|