google-apis-logging_v2 0.30.0 → 0.33.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: 495456aa2bdc50214a0f870431453ef97fef83f3d0d948cfb41b02294138af15
4
- data.tar.gz: 5ef353877d1e145dec3fe0820f8efc9fb36278aaba6f79876064cc6dd8713a4b
3
+ metadata.gz: 80a70fa0d2bc006eb5e352592381040cde168755e80fea1cf8728442f861f931
4
+ data.tar.gz: 50a4597b43eca767a91162ee5acdc663abfc485981c586e0cedbb9adbeacc26c
5
5
  SHA512:
6
- metadata.gz: bd944e6d78dddb71e8191a8a68e2d275ff989bfaaf914d9206c9eab0519c4205725d4e7c0b8683926e33dc0aa7097179e0aa4ae940cd1be800cfc7fde259bbd5
7
- data.tar.gz: 376fb13bfbddecd20f7bd466b1dab2fbe36fc7174eabaa3b1edb2f3d6ca14051ebe5588c9f3a49c9b4a036cdf3147e05574762a2baefe7d93ecfef8443a26aa5
6
+ metadata.gz: e3be58532b0f72a617b9f3b8da986dd5b302dd119ff7f9846059ec9f89b05db05edc47ce9b4d11c04eb9531e5498f6b1891c4cea6f483dcaa41bc19397409d71
7
+ data.tar.gz: e77f93b206006562612722e4509a4450c24b082203be30223cee632f40cc93f66c053da38092b147757ee49921373aabbfb35aeec7e0a187cf9bd091e8d9d172
data/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # Release history for google-apis-logging_v2
2
2
 
3
+ ### v0.33.0 (2022-07-23)
4
+
5
+ * Regenerated from discovery document revision 20220714
6
+ * Regenerated using generator version 0.9.0
7
+
8
+ ### v0.32.0 (2022-07-03)
9
+
10
+ * Regenerated from discovery document revision 20220624
11
+ * Regenerated using generator version 0.8.0
12
+
13
+ ### v0.31.0 (2022-06-18)
14
+
15
+ * Regenerated using generator version 0.7.0
16
+
3
17
  ### v0.30.0 (2022-06-04)
4
18
 
5
19
  * Regenerated from discovery document revision 20220527
@@ -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
@@ -1700,16 +1718,16 @@ module Google
1700
1718
 
1701
1719
  # Output only. An IAM identity—a service account or group—under which Cloud
1702
1720
  # 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.
1721
+ # is either set by specifying custom_writer_identity or set automatically by
1722
+ # sinks.create and sinks.update based on the value of unique_writer_identity in
1723
+ # those methods.Until you grant this identity write-access to the destination,
1724
+ # log entry exports from this sink will fail. For more information, see Granting
1725
+ # Access for a Resource (https://cloud.google.com/iam/docs/granting-roles-to-
1726
+ # service-accounts#granting_access_to_a_service_account_for_a_resource). Consult
1727
+ # the destination service's documentation to determine the appropriate IAM roles
1728
+ # to assign to the identity.Sinks that have a destination that is a log bucket
1729
+ # in the same project as the sink cannot have a writer_identity and no
1730
+ # additional permissions are required.
1713
1731
  # Corresponds to the JSON property `writerIdentity`
1714
1732
  # @return [String]
1715
1733
  attr_accessor :writer_identity
@@ -2777,9 +2795,10 @@ module Google
2777
2795
  # Optional. Whether a batch's valid entries should be written even if some other
2778
2796
  # entry failed due to a permanent error such as INVALID_ARGUMENT or
2779
2797
  # PERMISSION_DENIED. If any entry failed, then the response status is the
2780
- # response status is the status of one of the failed entries. The response will
2781
- # include error details keyed by the entries' zero-based index in the entries.
2782
- # write method.
2798
+ # response status of one of the failed entries. The response will include error
2799
+ # details in WriteLogEntriesPartialErrors.log_entry_errors keyed by the entries'
2800
+ # zero-based index in the entries. Failed requests for which no entries are
2801
+ # written will not include per-entry errors.
2783
2802
  # Corresponds to the JSON property `partialSuccess`
2784
2803
  # @return [Boolean]
2785
2804
  attr_accessor :partial_success
@@ -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.30.0"
19
+ GEM_VERSION = "0.33.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.5.0"
22
+ GENERATOR_VERSION = "0.9.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20220527"
25
+ REVISION = "20220714"
26
26
  end
27
27
  end
28
28
  end
@@ -132,73 +132,6 @@ module Google
132
132
  execute_or_queue_command(command, &block)
133
133
  end
134
134
 
135
- # Gets a log bucket.
136
- # @param [String] name
137
- # Required. The resource name of the bucket: "projects/[PROJECT_ID]/locations/[
138
- # LOCATION_ID]/buckets/[BUCKET_ID]" "organizations/[ORGANIZATION_ID]/locations/[
139
- # LOCATION_ID]/buckets/[BUCKET_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]/
140
- # locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "folders/[FOLDER_ID]/locations/[
141
- # LOCATION_ID]/buckets/[BUCKET_ID]" For example:"projects/my-project/locations/
142
- # global/buckets/my-bucket"
143
- # @param [String] fields
144
- # Selector specifying which fields to include in a partial response.
145
- # @param [String] quota_user
146
- # Available to use for quota purposes for server-side applications. Can be any
147
- # arbitrary string assigned to a user, but should not exceed 40 characters.
148
- # @param [Google::Apis::RequestOptions] options
149
- # Request-specific options
150
- #
151
- # @yield [result, err] Result & error if block supplied
152
- # @yieldparam result [Google::Apis::LoggingV2::LogBucket] parsed result object
153
- # @yieldparam err [StandardError] error object if request failed
154
- #
155
- # @return [Google::Apis::LoggingV2::LogBucket]
156
- #
157
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
158
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
159
- # @raise [Google::Apis::AuthorizationError] Authorization is required
160
- def get_billing_account_bucket(name, fields: nil, quota_user: nil, options: nil, &block)
161
- command = make_simple_command(:get, 'v2/{+name}', options)
162
- command.response_representation = Google::Apis::LoggingV2::LogBucket::Representation
163
- command.response_class = Google::Apis::LoggingV2::LogBucket
164
- command.params['name'] = name unless name.nil?
165
- command.query['fields'] = fields unless fields.nil?
166
- command.query['quotaUser'] = quota_user unless quota_user.nil?
167
- execute_or_queue_command(command, &block)
168
- end
169
-
170
- # Gets a view on a log bucket..
171
- # @param [String] name
172
- # Required. The resource name of the policy: "projects/[PROJECT_ID]/locations/[
173
- # LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]" For example:"projects/my-
174
- # project/locations/global/buckets/my-bucket/views/my-view"
175
- # @param [String] fields
176
- # Selector specifying which fields to include in a partial response.
177
- # @param [String] quota_user
178
- # Available to use for quota purposes for server-side applications. Can be any
179
- # arbitrary string assigned to a user, but should not exceed 40 characters.
180
- # @param [Google::Apis::RequestOptions] options
181
- # Request-specific options
182
- #
183
- # @yield [result, err] Result & error if block supplied
184
- # @yieldparam result [Google::Apis::LoggingV2::LogView] parsed result object
185
- # @yieldparam err [StandardError] error object if request failed
186
- #
187
- # @return [Google::Apis::LoggingV2::LogView]
188
- #
189
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
190
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
191
- # @raise [Google::Apis::AuthorizationError] Authorization is required
192
- def get_billing_account_bucket_view(name, fields: nil, quota_user: nil, options: nil, &block)
193
- command = make_simple_command(:get, 'v2/{+name}', options)
194
- command.response_representation = Google::Apis::LoggingV2::LogView::Representation
195
- command.response_class = Google::Apis::LoggingV2::LogView
196
- command.params['name'] = name unless name.nil?
197
- command.query['fields'] = fields unless fields.nil?
198
- command.query['quotaUser'] = quota_user unless quota_user.nil?
199
- execute_or_queue_command(command, &block)
200
- end
201
-
202
135
  # Creates a new exclusion in the _Default sink in a specified parent resource.
203
136
  # Only log entries belonging to that resource can be excluded. You can have up
204
137
  # to 10 exclusions in a resource.
@@ -544,6 +477,41 @@ module Google
544
477
  execute_or_queue_command(command, &block)
545
478
  end
546
479
 
480
+ # Gets a log bucket.
481
+ # @param [String] name
482
+ # Required. The resource name of the bucket: "projects/[PROJECT_ID]/locations/[
483
+ # LOCATION_ID]/buckets/[BUCKET_ID]" "organizations/[ORGANIZATION_ID]/locations/[
484
+ # LOCATION_ID]/buckets/[BUCKET_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]/
485
+ # locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "folders/[FOLDER_ID]/locations/[
486
+ # LOCATION_ID]/buckets/[BUCKET_ID]" For example:"projects/my-project/locations/
487
+ # global/buckets/my-bucket"
488
+ # @param [String] fields
489
+ # Selector specifying which fields to include in a partial response.
490
+ # @param [String] quota_user
491
+ # Available to use for quota purposes for server-side applications. Can be any
492
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
493
+ # @param [Google::Apis::RequestOptions] options
494
+ # Request-specific options
495
+ #
496
+ # @yield [result, err] Result & error if block supplied
497
+ # @yieldparam result [Google::Apis::LoggingV2::LogBucket] parsed result object
498
+ # @yieldparam err [StandardError] error object if request failed
499
+ #
500
+ # @return [Google::Apis::LoggingV2::LogBucket]
501
+ #
502
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
503
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
504
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
505
+ def get_billing_account_location_bucket(name, fields: nil, quota_user: nil, options: nil, &block)
506
+ command = make_simple_command(:get, 'v2/{+name}', options)
507
+ command.response_representation = Google::Apis::LoggingV2::LogBucket::Representation
508
+ command.response_class = Google::Apis::LoggingV2::LogBucket
509
+ command.params['name'] = name unless name.nil?
510
+ command.query['fields'] = fields unless fields.nil?
511
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
512
+ execute_or_queue_command(command, &block)
513
+ end
514
+
547
515
  # Lists log buckets.
548
516
  # @param [String] parent
549
517
  # Required. The parent resource whose buckets are to be listed: "projects/[
@@ -753,6 +721,38 @@ module Google
753
721
  execute_or_queue_command(command, &block)
754
722
  end
755
723
 
724
+ # Gets a view on a log bucket..
725
+ # @param [String] name
726
+ # Required. The resource name of the policy: "projects/[PROJECT_ID]/locations/[
727
+ # LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]" For example:"projects/my-
728
+ # project/locations/global/buckets/my-bucket/views/my-view"
729
+ # @param [String] fields
730
+ # Selector specifying which fields to include in a partial response.
731
+ # @param [String] quota_user
732
+ # Available to use for quota purposes for server-side applications. Can be any
733
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
734
+ # @param [Google::Apis::RequestOptions] options
735
+ # Request-specific options
736
+ #
737
+ # @yield [result, err] Result & error if block supplied
738
+ # @yieldparam result [Google::Apis::LoggingV2::LogView] parsed result object
739
+ # @yieldparam err [StandardError] error object if request failed
740
+ #
741
+ # @return [Google::Apis::LoggingV2::LogView]
742
+ #
743
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
744
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
745
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
746
+ def get_billing_account_location_bucket_view(name, fields: nil, quota_user: nil, options: nil, &block)
747
+ command = make_simple_command(:get, 'v2/{+name}', options)
748
+ command.response_representation = Google::Apis::LoggingV2::LogView::Representation
749
+ command.response_class = Google::Apis::LoggingV2::LogView
750
+ command.params['name'] = name unless name.nil?
751
+ command.query['fields'] = fields unless fields.nil?
752
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
753
+ execute_or_queue_command(command, &block)
754
+ end
755
+
756
756
  # Lists views on a log bucket.
757
757
  # @param [String] parent
758
758
  # Required. The bucket whose views are to be listed: "projects/[PROJECT_ID]/
@@ -934,6 +934,37 @@ module Google
934
934
  execute_or_queue_command(command, &block)
935
935
  end
936
936
 
937
+ # Gets the latest state of a long-running operation. Clients can use this method
938
+ # to poll the operation result at intervals as recommended by the API service.
939
+ # @param [String] name
940
+ # The name of the operation resource.
941
+ # @param [String] fields
942
+ # Selector specifying which fields to include in a partial response.
943
+ # @param [String] quota_user
944
+ # Available to use for quota purposes for server-side applications. Can be any
945
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
946
+ # @param [Google::Apis::RequestOptions] options
947
+ # Request-specific options
948
+ #
949
+ # @yield [result, err] Result & error if block supplied
950
+ # @yieldparam result [Google::Apis::LoggingV2::Operation] parsed result object
951
+ # @yieldparam err [StandardError] error object if request failed
952
+ #
953
+ # @return [Google::Apis::LoggingV2::Operation]
954
+ #
955
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
956
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
957
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
958
+ def get_billing_account_location_operation(name, fields: nil, quota_user: nil, options: nil, &block)
959
+ command = make_simple_command(:get, 'v2/{+name}', options)
960
+ command.response_representation = Google::Apis::LoggingV2::Operation::Representation
961
+ command.response_class = Google::Apis::LoggingV2::Operation
962
+ command.params['name'] = name unless name.nil?
963
+ command.query['fields'] = fields unless fields.nil?
964
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
965
+ execute_or_queue_command(command, &block)
966
+ end
967
+
937
968
  # Lists operations that match the specified filter in the request. If the server
938
969
  # doesn't support this method, it returns UNIMPLEMENTED.NOTE: the name binding
939
970
  # allows API services to override the binding to use different resource name
@@ -1072,37 +1103,6 @@ module Google
1072
1103
  execute_or_queue_command(command, &block)
1073
1104
  end
1074
1105
 
1075
- # Gets the latest state of a long-running operation. Clients can use this method
1076
- # to poll the operation result at intervals as recommended by the API service.
1077
- # @param [String] name
1078
- # The name of the operation resource.
1079
- # @param [String] fields
1080
- # Selector specifying which fields to include in a partial response.
1081
- # @param [String] quota_user
1082
- # Available to use for quota purposes for server-side applications. Can be any
1083
- # arbitrary string assigned to a user, but should not exceed 40 characters.
1084
- # @param [Google::Apis::RequestOptions] options
1085
- # Request-specific options
1086
- #
1087
- # @yield [result, err] Result & error if block supplied
1088
- # @yieldparam result [Google::Apis::LoggingV2::Operation] parsed result object
1089
- # @yieldparam err [StandardError] error object if request failed
1090
- #
1091
- # @return [Google::Apis::LoggingV2::Operation]
1092
- #
1093
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1094
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1095
- # @raise [Google::Apis::AuthorizationError] Authorization is required
1096
- def get_billing_account_operation(name, fields: nil, quota_user: nil, options: nil, &block)
1097
- command = make_simple_command(:get, 'v2/{+name}', options)
1098
- command.response_representation = Google::Apis::LoggingV2::Operation::Representation
1099
- command.response_class = Google::Apis::LoggingV2::Operation
1100
- command.params['name'] = name unless name.nil?
1101
- command.query['fields'] = fields unless fields.nil?
1102
- command.query['quotaUser'] = quota_user unless quota_user.nil?
1103
- execute_or_queue_command(command, &block)
1104
- end
1105
-
1106
1106
  # Creates a sink that exports specified log entries to a destination. The export
1107
1107
  # of newly-ingested log entries begins immediately, unless the sink's
1108
1108
  # writer_identity is not permitted to write to the destination. A sink can
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.30.0
4
+ version: 0.33.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-06-13 00:00:00.000000000 Z
11
+ date: 2022-07-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '0.5'
19
+ version: '0.7'
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: 2.a
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: '0.5'
29
+ version: '0.7'
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a
@@ -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.30.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-logging_v2/v0.33.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: []