google-apis-logging_v2 0.22.0 → 0.23.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: 5d62efe21639bb7eb73de0a75c299d235e1b78c9979171a11d2a0b09ccf7e6bf
|
4
|
+
data.tar.gz: 3ddf8f9a334ef8749207658c516437fb060bd09ffa181c7960c9568b8690709e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8639b36e87cc44c173d2de829b4679f98b03a68b213d52312f638a71311a2e707ee16295f59ee262cd8dc8299ad34b4ca4a462dea7d3095d95a7cce0240c12b3
|
7
|
+
data.tar.gz: db74de84475cabe5f1ee463cd273633870e644c335fd3b42e3c03d0159f9c5e14e39c05979406797f3f08c6da8f270cd8b358d6f207946b23dd810061e91bc00
|
data/CHANGELOG.md
CHANGED
@@ -1162,6 +1162,13 @@ module Google
|
|
1162
1162
|
# @return [String]
|
1163
1163
|
attr_accessor :span_id
|
1164
1164
|
|
1165
|
+
# Additional information used to correlate multiple log entries. Used when a
|
1166
|
+
# single LogEntry would exceed the Google Cloud Logging size limit and is split
|
1167
|
+
# across multiple log entries.
|
1168
|
+
# Corresponds to the JSON property `split`
|
1169
|
+
# @return [Google::Apis::LoggingV2::LogSplit]
|
1170
|
+
attr_accessor :split
|
1171
|
+
|
1165
1172
|
# The log entry payload, represented as a Unicode string (UTF-8).
|
1166
1173
|
# Corresponds to the JSON property `textPayload`
|
1167
1174
|
# @return [String]
|
@@ -1218,6 +1225,7 @@ module Google
|
|
1218
1225
|
@severity = args[:severity] if args.key?(:severity)
|
1219
1226
|
@source_location = args[:source_location] if args.key?(:source_location)
|
1220
1227
|
@span_id = args[:span_id] if args.key?(:span_id)
|
1228
|
+
@split = args[:split] if args.key?(:split)
|
1221
1229
|
@text_payload = args[:text_payload] if args.key?(:text_payload)
|
1222
1230
|
@timestamp = args[:timestamp] if args.key?(:timestamp)
|
1223
1231
|
@trace = args[:trace] if args.key?(:trace)
|
@@ -1675,6 +1683,42 @@ module Google
|
|
1675
1683
|
end
|
1676
1684
|
end
|
1677
1685
|
|
1686
|
+
# Additional information used to correlate multiple log entries. Used when a
|
1687
|
+
# single LogEntry would exceed the Google Cloud Logging size limit and is split
|
1688
|
+
# across multiple log entries.
|
1689
|
+
class LogSplit
|
1690
|
+
include Google::Apis::Core::Hashable
|
1691
|
+
|
1692
|
+
# The index of this LogEntry in the sequence of split log entries. Log entries
|
1693
|
+
# are given |index| values 0, 1, ..., n-1 for a sequence of n log entries.
|
1694
|
+
# Corresponds to the JSON property `index`
|
1695
|
+
# @return [Fixnum]
|
1696
|
+
attr_accessor :index
|
1697
|
+
|
1698
|
+
# The total number of log entries that the original LogEntry was split into.
|
1699
|
+
# Corresponds to the JSON property `totalSplits`
|
1700
|
+
# @return [Fixnum]
|
1701
|
+
attr_accessor :total_splits
|
1702
|
+
|
1703
|
+
# A globally unique identifier for all log entries in a sequence of split log
|
1704
|
+
# entries. All log entries with the same |LogSplit.uid| are assumed to be part
|
1705
|
+
# of the same sequence of split log entries.
|
1706
|
+
# Corresponds to the JSON property `uid`
|
1707
|
+
# @return [String]
|
1708
|
+
attr_accessor :uid
|
1709
|
+
|
1710
|
+
def initialize(**args)
|
1711
|
+
update!(**args)
|
1712
|
+
end
|
1713
|
+
|
1714
|
+
# Update properties of this object
|
1715
|
+
def update!(**args)
|
1716
|
+
@index = args[:index] if args.key?(:index)
|
1717
|
+
@total_splits = args[:total_splits] if args.key?(:total_splits)
|
1718
|
+
@uid = args[:uid] if args.key?(:uid)
|
1719
|
+
end
|
1720
|
+
end
|
1721
|
+
|
1678
1722
|
# Describes a view over log entries in a bucket.
|
1679
1723
|
class LogView
|
1680
1724
|
include Google::Apis::Core::Hashable
|
@@ -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.23.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 = "20220204"
|
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
|
|
@@ -603,6 +609,8 @@ module Google
|
|
603
609
|
property :source_location, as: 'sourceLocation', class: Google::Apis::LoggingV2::LogEntrySourceLocation, decorator: Google::Apis::LoggingV2::LogEntrySourceLocation::Representation
|
604
610
|
|
605
611
|
property :span_id, as: 'spanId'
|
612
|
+
property :split, as: 'split', class: Google::Apis::LoggingV2::LogSplit, decorator: Google::Apis::LoggingV2::LogSplit::Representation
|
613
|
+
|
606
614
|
property :text_payload, as: 'textPayload'
|
607
615
|
property :timestamp, as: 'timestamp'
|
608
616
|
property :trace, as: 'trace'
|
@@ -691,6 +699,15 @@ module Google
|
|
691
699
|
end
|
692
700
|
end
|
693
701
|
|
702
|
+
class LogSplit
|
703
|
+
# @private
|
704
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
705
|
+
property :index, as: 'index'
|
706
|
+
property :total_splits, as: 'totalSplits'
|
707
|
+
property :uid, as: 'uid'
|
708
|
+
end
|
709
|
+
end
|
710
|
+
|
694
711
|
class LogView
|
695
712
|
# @private
|
696
713
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -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.23.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-02-
|
11
|
+
date: 2022-02-14 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.23.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: []
|