google-apis-logging_v2 0.32.0 → 0.35.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: df222dd979dcf4c04097823f8df3ee72deca2f0ed1fe191c1ec6edd34a853e43
4
- data.tar.gz: aad0b90183b11cc629ad656abe61718e43a5dc12282b5ea9b709585b021e80ba
3
+ metadata.gz: cd2cce4c156edea3d95eb9baaddb8063795c9111caf31532b05295032150d667
4
+ data.tar.gz: 6d47ab264b13fca23c4a972420c01ba9829a0d31c47a16b6dbffd5a3fed651c1
5
5
  SHA512:
6
- metadata.gz: ae27b8e9f2fd1727203230d79955ec021ae87cc561935ebcbb28b84ecb626d23188102e989fac5b595ac4570df0673b83254ec3ece3b16d58abb355f2759d889
7
- data.tar.gz: 627883ca6bcf1fae294de2508f7351690c1e9e7ae3c43c2879f6803ac1cfaf7aaa2f48db90d86bdbdbb3da819eea254ecf2138bb148d2785fb3e65e049f17bff
6
+ metadata.gz: 7608a80007cba01df717275771e8f9452b276f9e54b87598d4326056cf85a4243839ec903faac8cf7f0da881d1b4bba35ef0b27be6a03a62571ca54f23d2186b
7
+ data.tar.gz: b9a8bece730abc41244db640b1cbd5ff2cc85d1e5f94180e14e2b6f2f4e2d843031e5c6429defb82a995a730b811b327662556bb28cecb805b07b491afb8fac0
data/CHANGELOG.md CHANGED
@@ -1,5 +1,18 @@
1
1
  # Release history for google-apis-logging_v2
2
2
 
3
+ ### v0.35.0 (2022-08-25)
4
+
5
+ * Regenerated from discovery document revision 20220819
6
+
7
+ ### v0.34.0 (2022-08-13)
8
+
9
+ * Regenerated from discovery document revision 20220805
10
+
11
+ ### v0.33.0 (2022-07-23)
12
+
13
+ * Regenerated from discovery document revision 20220714
14
+ * Regenerated using generator version 0.9.0
15
+
3
16
  ### v0.32.0 (2022-07-03)
4
17
 
5
18
  * Regenerated from discovery document revision 20220624
@@ -1207,9 +1207,24 @@ module Google
1207
1207
  # @return [Google::Apis::LoggingV2::LogEntrySourceLocation]
1208
1208
  attr_accessor :source_location
1209
1209
 
1210
- # Optional. The span ID within the trace associated with the log entry.For Trace
1211
- # spans, this is the same format that the Trace API v2 uses: a 16-character
1212
- # hexadecimal encoding of an 8-byte array, such as 000000000000004a.
1210
+ # Optional. The ID of the Cloud Trace (https://cloud.google.com/trace) span
1211
+ # associated with the current operation in which the log is being written. For
1212
+ # example, if a span has the REST resource name of "projects/some-project/traces/
1213
+ # some-trace/spans/some-span-id", then the span_id field is "some-span-id".A
1214
+ # Span (https://cloud.google.com/trace/docs/reference/v2/rest/v2/projects.traces/
1215
+ # batchWrite#Span) represents a single operation within a trace. Whereas a trace
1216
+ # may involve multiple different microservices running on multiple different
1217
+ # machines, a span generally corresponds to a single logical operation being
1218
+ # performed in a single instance of a microservice on one specific machine.
1219
+ # Spans are the nodes within the tree that is a trace.Applications that are
1220
+ # instrumented for tracing (https://cloud.google.com/trace/docs/setup) will
1221
+ # generally assign a new, unique span ID on each incoming request. It is also
1222
+ # common to create and record additional spans corresponding to internal
1223
+ # processing elements as well as issuing requests to dependencies.The span ID is
1224
+ # expected to be a 16-character, hexadecimal encoding of an 8-byte array and
1225
+ # should not be zero. It should be unique within the trace and should, ideally,
1226
+ # be generated in a manner that is uniformly random.Example values:
1227
+ # 000000000000004a 7a2190356c3fc94b 0000f00300090021 d39223e101960076
1213
1228
  # Corresponds to the JSON property `spanId`
1214
1229
  # @return [String]
1215
1230
  attr_accessor :span_id
@@ -1239,10 +1254,13 @@ module Google
1239
1254
  # @return [String]
1240
1255
  attr_accessor :timestamp
1241
1256
 
1242
- # Optional. Resource name of the trace associated with the log entry, if any. If
1243
- # it contains a relative resource name, the name is assumed to be relative to //
1244
- # tracing.googleapis.com. Example: projects/my-projectid/traces/
1245
- # 06796866738c859f2f19b7cfb3214824
1257
+ # Optional. The REST resource name of the trace being written to Cloud Trace (
1258
+ # https://cloud.google.com/trace) in association with this log entry. For
1259
+ # example, if your trace data is stored in the Cloud project "my-trace-project"
1260
+ # and if the service that is creating the log entry receives a trace header that
1261
+ # includes the trace ID "12345", then the service should use "projects/my-
1262
+ # tracing-project/traces/12345".The trace field provides the link between logs
1263
+ # and traces. By using this field, you can navigate from a log entry to a trace.
1246
1264
  # Corresponds to the JSON property `trace`
1247
1265
  # @return [String]
1248
1266
  attr_accessor :trace
@@ -1477,6 +1495,14 @@ module Google
1477
1495
  class LogMetric
1478
1496
  include Google::Apis::Core::Hashable
1479
1497
 
1498
+ # Optional. The resource name of the Log Bucket that owns the Log Metric. Only
1499
+ # Log Buckets in projects are supported. The bucket has to be in the same
1500
+ # project as the metric.For example:projects/my-project/locations/global/buckets/
1501
+ # my-bucketIf empty, then the Log Metric is considered a non-Bucket Log Metric.
1502
+ # Corresponds to the JSON property `bucketName`
1503
+ # @return [String]
1504
+ attr_accessor :bucket_name
1505
+
1480
1506
  # BucketOptions describes the bucket boundaries used to create a histogram for
1481
1507
  # the distribution. The buckets can be in a linear sequence, an exponential
1482
1508
  # sequence, or each bucket can be specified explicitly. BucketOptions does not
@@ -1526,11 +1552,11 @@ module Google
1526
1552
  # Each label key specified in the LabelDescriptor must have an associated
1527
1553
  # extractor expression in this map. The syntax of the extractor expression is
1528
1554
  # the same as for the value_extractor field.The extracted value is converted to
1529
- # the type defined in the label descriptor. If the either the extraction or the
1530
- # type conversion fails, the label will have a default value. The default value
1531
- # for a string label is an empty string, for an integer label its 0, and for a
1532
- # boolean label its false.Note that there are upper bounds on the maximum number
1533
- # of labels and the number of active time series that are allowed in a project.
1555
+ # the type defined in the label descriptor. If either the extraction or the type
1556
+ # conversion fails, the label will have a default value. The default value for a
1557
+ # string label is an empty string, for an integer label its 0, and for a boolean
1558
+ # label its false.Note that there are upper bounds on the maximum number of
1559
+ # labels and the number of active time series that are allowed in a project.
1534
1560
  # Corresponds to the JSON property `labelExtractors`
1535
1561
  # @return [Hash<String,String>]
1536
1562
  attr_accessor :label_extractors
@@ -1564,8 +1590,8 @@ module Google
1564
1590
  # Optional. A value_extractor is required when using a distribution logs-based
1565
1591
  # metric to extract the values to record from a log entry. Two functions are
1566
1592
  # supported for value extraction: EXTRACT(field) or REGEXP_EXTRACT(field, regex).
1567
- # The argument are: 1. field: The name of the log entry field from which the
1568
- # value is to be extracted. 2. regex: A regular expression using the Google RE2
1593
+ # The arguments are: field: The name of the log entry field from which the
1594
+ # value is to be extracted. regex: A regular expression using the Google RE2
1569
1595
  # syntax (https://github.com/google/re2/wiki/Syntax) with a single capture group
1570
1596
  # to extract data from the specified log entry field. The value of the field is
1571
1597
  # converted to a string before applying the regex. It is an error to specify a
@@ -1590,6 +1616,7 @@ module Google
1590
1616
 
1591
1617
  # Update properties of this object
1592
1618
  def update!(**args)
1619
+ @bucket_name = args[:bucket_name] if args.key?(:bucket_name)
1593
1620
  @bucket_options = args[:bucket_options] if args.key?(:bucket_options)
1594
1621
  @create_time = args[:create_time] if args.key?(:create_time)
1595
1622
  @description = args[:description] if args.key?(:description)
@@ -1700,16 +1727,16 @@ module Google
1700
1727
 
1701
1728
  # Output only. An IAM identity—a service account or group—under which Cloud
1702
1729
  # Logging writes the exported log entries to the sink's destination. This field
1703
- # is set by sinks.create and sinks.update based on the value of
1704
- # unique_writer_identity in those methods.Until you grant this identity write-
1705
- # access to the destination, log entry exports from this sink will fail. For
1706
- # more information, see Granting Access for a Resource (https://cloud.google.com/
1707
- # iam/docs/granting-roles-to-service-accounts#
1708
- # granting_access_to_a_service_account_for_a_resource). Consult the destination
1709
- # service's documentation to determine the appropriate IAM roles to assign to
1710
- # the identity.Sinks that have a destination that is a log bucket in the same
1711
- # project as the sink do not have a writer_identity and no additional
1712
- # permissions are required.
1730
+ # is either set by specifying custom_writer_identity or set automatically by
1731
+ # sinks.create and sinks.update based on the value of unique_writer_identity in
1732
+ # those methods.Until you grant this identity write-access to the destination,
1733
+ # log entry exports from this sink will fail. For more information, see Granting
1734
+ # Access for a Resource (https://cloud.google.com/iam/docs/granting-roles-to-
1735
+ # service-accounts#granting_access_to_a_service_account_for_a_resource). Consult
1736
+ # the destination service's documentation to determine the appropriate IAM roles
1737
+ # to assign to the identity.Sinks that have a destination that is a log bucket
1738
+ # in the same project as the sink cannot have a writer_identity and no
1739
+ # additional permissions are required.
1713
1740
  # Corresponds to the JSON property `writerIdentity`
1714
1741
  # @return [String]
1715
1742
  attr_accessor :writer_identity
@@ -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.32.0"
19
+ GEM_VERSION = "0.35.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.8.0"
22
+ GENERATOR_VERSION = "0.9.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20220624"
25
+ REVISION = "20220819"
26
26
  end
27
27
  end
28
28
  end
@@ -681,6 +681,7 @@ module Google
681
681
  class LogMetric
682
682
  # @private
683
683
  class Representation < Google::Apis::Core::JsonRepresentation
684
+ property :bucket_name, as: 'bucketName'
684
685
  property :bucket_options, as: 'bucketOptions', class: Google::Apis::LoggingV2::BucketOptions, decorator: Google::Apis::LoggingV2::BucketOptions::Representation
685
686
 
686
687
  property :create_time, as: 'createTime'
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.32.0
4
+ version: 0.35.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-07-04 00:00:00.000000000 Z
11
+ date: 2022-08-29 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.32.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-logging_v2/v0.35.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: []