google-apis-logging_v2 0.11.0 → 0.15.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 +4 -4
- data/CHANGELOG.md +17 -0
- data/lib/google/apis/logging_v2/classes.rb +323 -68
- data/lib/google/apis/logging_v2/gem_version.rb +3 -3
- data/lib/google/apis/logging_v2/representations.rb +108 -0
- data/lib/google/apis/logging_v2/service.rb +998 -364
- data/lib/google/apis/logging_v2.rb +2 -2
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 37365c3e8c66171c5d7050bdd6d511d07ec8cdc3d7c8765b20ce6eac527eebc8
|
4
|
+
data.tar.gz: b33f7c4482ce007949d1d64a43087f1988173619c0d1aa61cfc81382cfef9b12
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 41a689179b7cfd3168c0708c4eeb438d08f905a364bd9467d09545073cb353365c53db2bedc8f48c735c23cb6d784861e11be93115ce9090e2258ad2eb20b6ee
|
7
|
+
data.tar.gz: 0e0ba8afa35eb6fbab9eace685dcb352605548eee8f8d661ac300b9585433e2ca0906a4c195d6606c23fb76d7c9ecc44dc3f3b85c1126d59aa9a1be79ace8350
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,22 @@
|
|
1
1
|
# Release history for google-apis-logging_v2
|
2
2
|
|
3
|
+
### v0.15.0 (2021-10-02)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20210922
|
6
|
+
|
7
|
+
### v0.14.0 (2021-09-01)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20210817
|
10
|
+
|
11
|
+
### v0.13.0 (2021-07-16)
|
12
|
+
|
13
|
+
* Regenerated from discovery document revision 20210709
|
14
|
+
|
15
|
+
### v0.12.0 (2021-07-03)
|
16
|
+
|
17
|
+
* Regenerated from discovery document revision 20210625
|
18
|
+
* Regenerated using generator version 0.4.0
|
19
|
+
|
3
20
|
### v0.11.0 (2021-06-24)
|
4
21
|
|
5
22
|
* Unspecified changes
|
@@ -27,18 +27,19 @@ module Google
|
|
27
27
|
include Google::Apis::Core::Hashable
|
28
28
|
|
29
29
|
# Optional. Whether to use BigQuery's partition tables (https://cloud.google.com/
|
30
|
-
# bigquery/docs/partitioned-tables). By default, Logging creates dated
|
31
|
-
# based on the log entries' timestamps, e.g. syslog_20170523. With
|
32
|
-
# tables the date suffix is no longer present and special query
|
33
|
-
# cloud.google.com/bigquery/docs/querying-partitioned-tables)
|
34
|
-
# instead. In both cases, tables are sharded based on UTC
|
30
|
+
# bigquery/docs/partitioned-tables). By default, Cloud Logging creates dated
|
31
|
+
# tables based on the log entries' timestamps, e.g. syslog_20170523. With
|
32
|
+
# partitioned tables the date suffix is no longer present and special query
|
33
|
+
# syntax (https://cloud.google.com/bigquery/docs/querying-partitioned-tables)
|
34
|
+
# has to be used instead. In both cases, tables are sharded based on UTC
|
35
|
+
# timezone.
|
35
36
|
# Corresponds to the JSON property `usePartitionedTables`
|
36
37
|
# @return [Boolean]
|
37
38
|
attr_accessor :use_partitioned_tables
|
38
39
|
alias_method :use_partitioned_tables?, :use_partitioned_tables
|
39
40
|
|
40
41
|
# Output only. True if new timestamp column based partitioning is in use, false
|
41
|
-
# if legacy ingestion-time partitioning is in use.
|
42
|
+
# if legacy ingestion-time partitioning is in use.All new sinks will have this
|
42
43
|
# field set true and will use timestamp column based partitioning. If
|
43
44
|
# use_partitioned_tables is false, this value has no meaning and will be false.
|
44
45
|
# Legacy sinks using partitioned tables will have this field set to false.
|
@@ -115,6 +116,19 @@ module Google
|
|
115
116
|
end
|
116
117
|
end
|
117
118
|
|
119
|
+
# The request message for Operations.CancelOperation.
|
120
|
+
class CancelOperationRequest
|
121
|
+
include Google::Apis::Core::Hashable
|
122
|
+
|
123
|
+
def initialize(**args)
|
124
|
+
update!(**args)
|
125
|
+
end
|
126
|
+
|
127
|
+
# Update properties of this object
|
128
|
+
def update!(**args)
|
129
|
+
end
|
130
|
+
end
|
131
|
+
|
118
132
|
# Describes the customer-managed encryption key (CMEK) settings associated with
|
119
133
|
# a project, folder, organization, billing account, or flexible resource.Note:
|
120
134
|
# CMEK for the Logs Router can currently only be configured for GCP
|
@@ -125,9 +139,9 @@ module Google
|
|
125
139
|
include Google::Apis::Core::Hashable
|
126
140
|
|
127
141
|
# The resource name for the configured Cloud KMS key.KMS key name format: "
|
128
|
-
# projects/PROJECT_ID/locations/LOCATION/keyRings/KEYRING/cryptoKeys/KEY"
|
129
|
-
# example:
|
130
|
-
# cryptoKeys/key
|
142
|
+
# projects/[PROJECT_ID]/locations/[LOCATION]/keyRings/[KEYRING]/cryptoKeys/[KEY]"
|
143
|
+
# For example:"projects/my-project/locations/us-central1/keyRings/my-ring/
|
144
|
+
# cryptoKeys/my-key"To enable CMEK for the Logs Router, set this field to a
|
131
145
|
# valid kms_key_name for which the associated service account has the required
|
132
146
|
# roles/cloudkms.cryptoKeyEncrypterDecrypter role assigned for the key.The Cloud
|
133
147
|
# KMS key used by the Log Router can be updated by changing the kms_key_name to
|
@@ -170,6 +184,117 @@ module Google
|
|
170
184
|
end
|
171
185
|
end
|
172
186
|
|
187
|
+
# Metadata for CopyLogEntries long running operations.
|
188
|
+
class CopyLogEntriesMetadata
|
189
|
+
include Google::Apis::Core::Hashable
|
190
|
+
|
191
|
+
# Identifies whether the user has requested cancellation of the operation.
|
192
|
+
# Corresponds to the JSON property `cancellationRequested`
|
193
|
+
# @return [Boolean]
|
194
|
+
attr_accessor :cancellation_requested
|
195
|
+
alias_method :cancellation_requested?, :cancellation_requested
|
196
|
+
|
197
|
+
# The end time of an operation.
|
198
|
+
# Corresponds to the JSON property `endTime`
|
199
|
+
# @return [String]
|
200
|
+
attr_accessor :end_time
|
201
|
+
|
202
|
+
# Estimated progress of the operation (0 - 100%).
|
203
|
+
# Corresponds to the JSON property `progress`
|
204
|
+
# @return [Fixnum]
|
205
|
+
attr_accessor :progress
|
206
|
+
|
207
|
+
# The parameters to CopyLogEntries.
|
208
|
+
# Corresponds to the JSON property `request`
|
209
|
+
# @return [Google::Apis::LoggingV2::CopyLogEntriesRequest]
|
210
|
+
attr_accessor :request
|
211
|
+
|
212
|
+
# The create time of an operation.
|
213
|
+
# Corresponds to the JSON property `startTime`
|
214
|
+
# @return [String]
|
215
|
+
attr_accessor :start_time
|
216
|
+
|
217
|
+
# State of an operation.
|
218
|
+
# Corresponds to the JSON property `state`
|
219
|
+
# @return [String]
|
220
|
+
attr_accessor :state
|
221
|
+
|
222
|
+
# The IAM identity of a service account that must be granted access to the
|
223
|
+
# destination.If the service account is not granted permission to the
|
224
|
+
# destination within an hour, the operation will be cancelled.For example: "
|
225
|
+
# serviceAccount:foo@bar.com"
|
226
|
+
# Corresponds to the JSON property `writerIdentity`
|
227
|
+
# @return [String]
|
228
|
+
attr_accessor :writer_identity
|
229
|
+
|
230
|
+
def initialize(**args)
|
231
|
+
update!(**args)
|
232
|
+
end
|
233
|
+
|
234
|
+
# Update properties of this object
|
235
|
+
def update!(**args)
|
236
|
+
@cancellation_requested = args[:cancellation_requested] if args.key?(:cancellation_requested)
|
237
|
+
@end_time = args[:end_time] if args.key?(:end_time)
|
238
|
+
@progress = args[:progress] if args.key?(:progress)
|
239
|
+
@request = args[:request] if args.key?(:request)
|
240
|
+
@start_time = args[:start_time] if args.key?(:start_time)
|
241
|
+
@state = args[:state] if args.key?(:state)
|
242
|
+
@writer_identity = args[:writer_identity] if args.key?(:writer_identity)
|
243
|
+
end
|
244
|
+
end
|
245
|
+
|
246
|
+
# The parameters to CopyLogEntries.
|
247
|
+
class CopyLogEntriesRequest
|
248
|
+
include Google::Apis::Core::Hashable
|
249
|
+
|
250
|
+
# Required. Destination to which to copy log entries.
|
251
|
+
# Corresponds to the JSON property `destination`
|
252
|
+
# @return [String]
|
253
|
+
attr_accessor :destination
|
254
|
+
|
255
|
+
# Optional. A filter specifying which log entries to copy. The filter must be no
|
256
|
+
# more than 20k characters. An empty filter matches all log entries.
|
257
|
+
# Corresponds to the JSON property `filter`
|
258
|
+
# @return [String]
|
259
|
+
attr_accessor :filter
|
260
|
+
|
261
|
+
# Required. Log bucket from which to copy log entries.For example:"projects/my-
|
262
|
+
# project/locations/global/buckets/my-source-bucket"
|
263
|
+
# Corresponds to the JSON property `name`
|
264
|
+
# @return [String]
|
265
|
+
attr_accessor :name
|
266
|
+
|
267
|
+
def initialize(**args)
|
268
|
+
update!(**args)
|
269
|
+
end
|
270
|
+
|
271
|
+
# Update properties of this object
|
272
|
+
def update!(**args)
|
273
|
+
@destination = args[:destination] if args.key?(:destination)
|
274
|
+
@filter = args[:filter] if args.key?(:filter)
|
275
|
+
@name = args[:name] if args.key?(:name)
|
276
|
+
end
|
277
|
+
end
|
278
|
+
|
279
|
+
# Response type for CopyLogEntries long running operations.
|
280
|
+
class CopyLogEntriesResponse
|
281
|
+
include Google::Apis::Core::Hashable
|
282
|
+
|
283
|
+
# Number of log entries copied.
|
284
|
+
# Corresponds to the JSON property `logEntriesCopiedCount`
|
285
|
+
# @return [Fixnum]
|
286
|
+
attr_accessor :log_entries_copied_count
|
287
|
+
|
288
|
+
def initialize(**args)
|
289
|
+
update!(**args)
|
290
|
+
end
|
291
|
+
|
292
|
+
# Update properties of this object
|
293
|
+
def update!(**args)
|
294
|
+
@log_entries_copied_count = args[:log_entries_copied_count] if args.key?(:log_entries_copied_count)
|
295
|
+
end
|
296
|
+
end
|
297
|
+
|
173
298
|
# A generic empty message that you can re-use to avoid defining duplicated empty
|
174
299
|
# messages in your APIs. A typical example is to use it as the request or the
|
175
300
|
# response type of an API method. For instance: service Foo ` rpc Bar(google.
|
@@ -704,6 +829,31 @@ module Google
|
|
704
829
|
end
|
705
830
|
end
|
706
831
|
|
832
|
+
# The response message for Operations.ListOperations.
|
833
|
+
class ListOperationsResponse
|
834
|
+
include Google::Apis::Core::Hashable
|
835
|
+
|
836
|
+
# The standard List next-page token.
|
837
|
+
# Corresponds to the JSON property `nextPageToken`
|
838
|
+
# @return [String]
|
839
|
+
attr_accessor :next_page_token
|
840
|
+
|
841
|
+
# A list of operations that matches the specified filter in the request.
|
842
|
+
# Corresponds to the JSON property `operations`
|
843
|
+
# @return [Array<Google::Apis::LoggingV2::Operation>]
|
844
|
+
attr_accessor :operations
|
845
|
+
|
846
|
+
def initialize(**args)
|
847
|
+
update!(**args)
|
848
|
+
end
|
849
|
+
|
850
|
+
# Update properties of this object
|
851
|
+
def update!(**args)
|
852
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
853
|
+
@operations = args[:operations] if args.key?(:operations)
|
854
|
+
end
|
855
|
+
end
|
856
|
+
|
707
857
|
# Result returned from ListSinks.
|
708
858
|
class ListSinksResponse
|
709
859
|
include Google::Apis::Core::Hashable
|
@@ -805,7 +955,7 @@ module Google
|
|
805
955
|
end
|
806
956
|
end
|
807
957
|
|
808
|
-
# Describes a repository
|
958
|
+
# Describes a repository in which log entries are stored.
|
809
959
|
class LogBucket
|
810
960
|
include Google::Apis::Core::Hashable
|
811
961
|
|
@@ -825,27 +975,27 @@ module Google
|
|
825
975
|
# @return [String]
|
826
976
|
attr_accessor :lifecycle_state
|
827
977
|
|
828
|
-
# Whether the bucket
|
829
|
-
#
|
978
|
+
# Whether the bucket is locked.The retention period on a locked bucket cannot be
|
979
|
+
# changed. Locked buckets may only be deleted if they are empty.
|
830
980
|
# Corresponds to the JSON property `locked`
|
831
981
|
# @return [Boolean]
|
832
982
|
attr_accessor :locked
|
833
983
|
alias_method :locked?, :locked
|
834
984
|
|
835
|
-
# Output only. The resource name of the bucket.
|
836
|
-
#
|
837
|
-
#
|
838
|
-
# location of global it is unspecified where
|
839
|
-
# bucket has been created, the location
|
985
|
+
# Output only. The resource name of the bucket.For example:projects/my-project/
|
986
|
+
# locations/global/buckets/my-bucketFor a list of supported locations, see
|
987
|
+
# Supported Regions (https://cloud.google.com/logging/docs/region-support)For
|
988
|
+
# the location of global it is unspecified where log entries are actually stored.
|
989
|
+
# After a bucket has been created, the location cannot be changed.
|
840
990
|
# Corresponds to the JSON property `name`
|
841
991
|
# @return [String]
|
842
992
|
attr_accessor :name
|
843
993
|
|
844
|
-
# Log entry field paths that are denied access in this bucket.
|
994
|
+
# Log entry field paths that are denied access in this bucket.The following
|
845
995
|
# fields and their children are eligible: textPayload, jsonPayload, protoPayload,
|
846
|
-
# httpRequest, labels, sourceLocation.
|
847
|
-
# restrict all values. Adding a parent will block all child fields e.g. foo.
|
848
|
-
# will block foo.bar.baz
|
996
|
+
# httpRequest, labels, sourceLocation.Restricting a repeated field will
|
997
|
+
# restrict all values. Adding a parent will block all child fields. (e.g. foo.
|
998
|
+
# bar will block foo.bar.baz)
|
849
999
|
# Corresponds to the JSON property `restrictedFields`
|
850
1000
|
# @return [Array<String>]
|
851
1001
|
attr_accessor :restricted_fields
|
@@ -1146,12 +1296,12 @@ module Google
|
|
1146
1296
|
end
|
1147
1297
|
end
|
1148
1298
|
|
1149
|
-
# Specifies a set of log entries that are not to be stored in Logging. If
|
1150
|
-
# GCP resource receives a large volume of
|
1151
|
-
# your chargeable logs. Exclusions are processed after log
|
1152
|
-
# export log entries before they are excluded. Note that
|
1153
|
-
# folder-level exclusions don't apply to child resources,
|
1154
|
-
# exclude audit log entries.
|
1299
|
+
# Specifies a set of log entries that are not to be stored in Cloud Logging. If
|
1300
|
+
# your GCP resource receives a large volume of log entries, you can use
|
1301
|
+
# exclusions to reduce your chargeable logs. Exclusions are processed after log
|
1302
|
+
# sinks, so you can export log entries before they are excluded. Note that
|
1303
|
+
# organization-level and folder-level exclusions don't apply to child resources,
|
1304
|
+
# and that you can't exclude audit log entries.
|
1155
1305
|
class LogExclusion
|
1156
1306
|
include Google::Apis::Core::Hashable
|
1157
1307
|
|
@@ -1177,10 +1327,10 @@ module Google
|
|
1177
1327
|
# Required. An advanced logs filter (https://cloud.google.com/logging/docs/view/
|
1178
1328
|
# advanced-queries) that matches the log entries to be excluded. By using the
|
1179
1329
|
# sample function (https://cloud.google.com/logging/docs/view/advanced-queries#
|
1180
|
-
# sample), you can exclude less than 100% of the matching log entries.
|
1330
|
+
# sample), you can exclude less than 100% of the matching log entries.For
|
1181
1331
|
# example, the following query matches 99% of low-severity log entries from
|
1182
|
-
# Google Cloud Storage buckets:
|
1183
|
-
# insertId, 0.99)
|
1332
|
+
# Google Cloud Storage buckets:resource.type=gcs_bucket severity<ERROR sample(
|
1333
|
+
# insertId, 0.99)
|
1184
1334
|
# Corresponds to the JSON property `filter`
|
1185
1335
|
# @return [String]
|
1186
1336
|
attr_accessor :filter
|
@@ -1386,10 +1536,10 @@ module Google
|
|
1386
1536
|
end
|
1387
1537
|
|
1388
1538
|
# Describes a sink used to export log entries to one of the following
|
1389
|
-
# destinations in any project: a Cloud Storage bucket, a BigQuery dataset, a
|
1390
|
-
#
|
1391
|
-
#
|
1392
|
-
#
|
1539
|
+
# destinations in any project: a Cloud Storage bucket, a BigQuery dataset, a Pub/
|
1540
|
+
# Sub topic or a Cloud Logging log bucket. A logs filter controls which log
|
1541
|
+
# entries are exported. The sink must be created within a project, organization,
|
1542
|
+
# billing account, or folder.
|
1393
1543
|
class LogSink
|
1394
1544
|
include Google::Apis::Core::Hashable
|
1395
1545
|
|
@@ -1404,7 +1554,7 @@ module Google
|
|
1404
1554
|
# @return [String]
|
1405
1555
|
attr_accessor :create_time
|
1406
1556
|
|
1407
|
-
# Optional. A description of this sink.
|
1557
|
+
# Optional. A description of this sink.The maximum length of the description is
|
1408
1558
|
# 8000 characters.
|
1409
1559
|
# Corresponds to the JSON property `description`
|
1410
1560
|
# @return [String]
|
@@ -1421,23 +1571,23 @@ module Google
|
|
1421
1571
|
# @return [String]
|
1422
1572
|
attr_accessor :destination
|
1423
1573
|
|
1424
|
-
# Optional. If set to
|
1574
|
+
# Optional. If set to true, then this sink is disabled and it does not export
|
1425
1575
|
# any log entries.
|
1426
1576
|
# Corresponds to the JSON property `disabled`
|
1427
1577
|
# @return [Boolean]
|
1428
1578
|
attr_accessor :disabled
|
1429
1579
|
alias_method :disabled?, :disabled
|
1430
1580
|
|
1431
|
-
# Optional. Log entries that match any of
|
1432
|
-
# exported.
|
1433
|
-
#
|
1581
|
+
# Optional. Log entries that match any of these exclusion filters will not be
|
1582
|
+
# exported.If a log entry is matched by both filter and one of exclusion_filters
|
1583
|
+
# it will not be exported.
|
1434
1584
|
# Corresponds to the JSON property `exclusions`
|
1435
1585
|
# @return [Array<Google::Apis::LoggingV2::LogExclusion>]
|
1436
1586
|
attr_accessor :exclusions
|
1437
1587
|
|
1438
1588
|
# Optional. An advanced logs filter (https://cloud.google.com/logging/docs/view/
|
1439
1589
|
# advanced-queries). The only exported log entries are those that are in the
|
1440
|
-
# resource owning the sink and that match the filter.
|
1590
|
+
# resource owning the sink and that match the filter.For example:logName="
|
1441
1591
|
# projects/[PROJECT_ID]/logs/[LOG_ID]" AND severity>=ERROR
|
1442
1592
|
# Corresponds to the JSON property `filter`
|
1443
1593
|
# @return [String]
|
@@ -1445,22 +1595,22 @@ module Google
|
|
1445
1595
|
|
1446
1596
|
# Optional. This field applies only to sinks owned by organizations and folders.
|
1447
1597
|
# If the field is false, the default, only the logs owned by the sink's parent
|
1448
|
-
# resource are available for export. If the field is true, then
|
1449
|
-
# the projects, folders, and billing accounts contained in the sink's parent
|
1598
|
+
# resource are available for export. If the field is true, then log entries from
|
1599
|
+
# all the projects, folders, and billing accounts contained in the sink's parent
|
1450
1600
|
# resource are also available for export. Whether a particular log entry from
|
1451
|
-
# the children is exported depends on the sink's filter expression.
|
1601
|
+
# the children is exported depends on the sink's filter expression.For example,
|
1452
1602
|
# if this field is true, then the filter resource.type=gce_instance would export
|
1453
1603
|
# all Compute Engine VM instance log entries from all projects in the sink's
|
1454
|
-
# parent.
|
1455
|
-
# project part of the log name:
|
1604
|
+
# parent.To only export entries from certain child projects, filter on the
|
1605
|
+
# project part of the log name:logName:("projects/test-project1/" OR "projects/
|
1456
1606
|
# test-project2/") AND resource.type=gce_instance
|
1457
1607
|
# Corresponds to the JSON property `includeChildren`
|
1458
1608
|
# @return [Boolean]
|
1459
1609
|
attr_accessor :include_children
|
1460
1610
|
alias_method :include_children?, :include_children
|
1461
1611
|
|
1462
|
-
# Required. The client-assigned sink identifier, unique within the project.
|
1463
|
-
#
|
1612
|
+
# Required. The client-assigned sink identifier, unique within the project.For
|
1613
|
+
# example: "my-syslog-errors-to-pubsub". Sink identifiers are limited to 100
|
1464
1614
|
# characters and can include only the following characters: upper and lower-case
|
1465
1615
|
# alphanumeric characters, underscores, hyphens, and periods. First character
|
1466
1616
|
# has to be alphanumeric.
|
@@ -1479,15 +1629,16 @@ module Google
|
|
1479
1629
|
# @return [String]
|
1480
1630
|
attr_accessor :update_time
|
1481
1631
|
|
1482
|
-
# Output only. An IAM identity—a service account or group—under which
|
1483
|
-
# writes the exported log entries to the sink's destination. This field
|
1484
|
-
# by sinks.create and sinks.update based on the value of
|
1485
|
-
# in those methods.Until you grant this identity write-
|
1486
|
-
# log entry exports from this sink will fail. For
|
1487
|
-
# Granting Access for a Resource (https://cloud.google.com/
|
1488
|
-
# roles-to-service-accounts#
|
1489
|
-
# Consult the destination
|
1490
|
-
# IAM roles to assign to
|
1632
|
+
# Output only. An IAM identity—a service account or group—under which Cloud
|
1633
|
+
# Logging writes the exported log entries to the sink's destination. This field
|
1634
|
+
# is set by sinks.create and sinks.update based on the value of
|
1635
|
+
# unique_writer_identity in those methods.Until you grant this identity write-
|
1636
|
+
# access to the destination, log entry exports from this sink will fail. For
|
1637
|
+
# more information, see Granting Access for a Resource (https://cloud.google.com/
|
1638
|
+
# iam/docs/granting-roles-to-service-accounts#
|
1639
|
+
# granting_access_to_a_service_account_for_a_resource). Consult the destination
|
1640
|
+
# service's documentation to determine the appropriate IAM roles to assign to
|
1641
|
+
# the identity.
|
1491
1642
|
# Corresponds to the JSON property `writerIdentity`
|
1492
1643
|
# @return [String]
|
1493
1644
|
attr_accessor :writer_identity
|
@@ -1513,7 +1664,7 @@ module Google
|
|
1513
1664
|
end
|
1514
1665
|
end
|
1515
1666
|
|
1516
|
-
# Describes a view over
|
1667
|
+
# Describes a view over log entries in a bucket.
|
1517
1668
|
class LogView
|
1518
1669
|
include Google::Apis::Core::Hashable
|
1519
1670
|
|
@@ -1529,15 +1680,15 @@ module Google
|
|
1529
1680
|
|
1530
1681
|
# Filter that restricts which log entries in a bucket are visible in this view.
|
1531
1682
|
# Filters are restricted to be a logical AND of ==/!= of any of the following:
|
1532
|
-
# originating project/folder/organization/billing account. resource type log
|
1533
|
-
#
|
1534
|
-
# LOG_ID("stdout")
|
1683
|
+
# originating project/folder/organization/billing account. resource type log
|
1684
|
+
# idFor example:SOURCE("projects/myproject") AND resource.type = "gce_instance"
|
1685
|
+
# AND LOG_ID("stdout")
|
1535
1686
|
# Corresponds to the JSON property `filter`
|
1536
1687
|
# @return [String]
|
1537
1688
|
attr_accessor :filter
|
1538
1689
|
|
1539
|
-
# The resource name of the view.
|
1540
|
-
#
|
1690
|
+
# The resource name of the view.For example:projects/my-project/locations/global/
|
1691
|
+
# buckets/my-bucket/views/my-view
|
1541
1692
|
# Corresponds to the JSON property `name`
|
1542
1693
|
# @return [String]
|
1543
1694
|
attr_accessor :name
|
@@ -1821,7 +1972,10 @@ module Google
|
|
1821
1972
|
attr_accessor :name
|
1822
1973
|
|
1823
1974
|
# Required. The monitored resource type. For example, the type "
|
1824
|
-
# cloudsql_database" represents databases in Google Cloud SQL.
|
1975
|
+
# cloudsql_database" represents databases in Google Cloud SQL. For a list of
|
1976
|
+
# types, see Monitoring resource types (https://cloud.google.com/monitoring/api/
|
1977
|
+
# resources) and Logging resource types (https://cloud.google.com/logging/docs/
|
1978
|
+
# api/v2/resource-list).
|
1825
1979
|
# Corresponds to the JSON property `type`
|
1826
1980
|
# @return [String]
|
1827
1981
|
attr_accessor :type
|
@@ -1874,6 +2028,68 @@ module Google
|
|
1874
2028
|
end
|
1875
2029
|
end
|
1876
2030
|
|
2031
|
+
# This resource represents a long-running operation that is the result of a
|
2032
|
+
# network API call.
|
2033
|
+
class Operation
|
2034
|
+
include Google::Apis::Core::Hashable
|
2035
|
+
|
2036
|
+
# If the value is false, it means the operation is still in progress. If true,
|
2037
|
+
# the operation is completed, and either error or response is available.
|
2038
|
+
# Corresponds to the JSON property `done`
|
2039
|
+
# @return [Boolean]
|
2040
|
+
attr_accessor :done
|
2041
|
+
alias_method :done?, :done
|
2042
|
+
|
2043
|
+
# The Status type defines a logical error model that is suitable for different
|
2044
|
+
# programming environments, including REST APIs and RPC APIs. It is used by gRPC
|
2045
|
+
# (https://github.com/grpc). Each Status message contains three pieces of data:
|
2046
|
+
# error code, error message, and error details.You can find out more about this
|
2047
|
+
# error model and how to work with it in the API Design Guide (https://cloud.
|
2048
|
+
# google.com/apis/design/errors).
|
2049
|
+
# Corresponds to the JSON property `error`
|
2050
|
+
# @return [Google::Apis::LoggingV2::Status]
|
2051
|
+
attr_accessor :error
|
2052
|
+
|
2053
|
+
# Service-specific metadata associated with the operation. It typically contains
|
2054
|
+
# progress information and common metadata such as create time. Some services
|
2055
|
+
# might not provide such metadata. Any method that returns a long-running
|
2056
|
+
# operation should document the metadata type, if any.
|
2057
|
+
# Corresponds to the JSON property `metadata`
|
2058
|
+
# @return [Hash<String,Object>]
|
2059
|
+
attr_accessor :metadata
|
2060
|
+
|
2061
|
+
# The server-assigned name, which is only unique within the same service that
|
2062
|
+
# originally returns it. If you use the default HTTP mapping, the name should be
|
2063
|
+
# a resource name ending with operations/`unique_id`.
|
2064
|
+
# Corresponds to the JSON property `name`
|
2065
|
+
# @return [String]
|
2066
|
+
attr_accessor :name
|
2067
|
+
|
2068
|
+
# The normal response of the operation in case of success. If the original
|
2069
|
+
# method returns no data on success, such as Delete, the response is google.
|
2070
|
+
# protobuf.Empty. If the original method is standard Get/Create/Update, the
|
2071
|
+
# response should be the resource. For other methods, the response should have
|
2072
|
+
# the type XxxResponse, where Xxx is the original method name. For example, if
|
2073
|
+
# the original method name is TakeSnapshot(), the inferred response type is
|
2074
|
+
# TakeSnapshotResponse.
|
2075
|
+
# Corresponds to the JSON property `response`
|
2076
|
+
# @return [Hash<String,Object>]
|
2077
|
+
attr_accessor :response
|
2078
|
+
|
2079
|
+
def initialize(**args)
|
2080
|
+
update!(**args)
|
2081
|
+
end
|
2082
|
+
|
2083
|
+
# Update properties of this object
|
2084
|
+
def update!(**args)
|
2085
|
+
@done = args[:done] if args.key?(:done)
|
2086
|
+
@error = args[:error] if args.key?(:error)
|
2087
|
+
@metadata = args[:metadata] if args.key?(:metadata)
|
2088
|
+
@name = args[:name] if args.key?(:name)
|
2089
|
+
@response = args[:response] if args.key?(:response)
|
2090
|
+
end
|
2091
|
+
end
|
2092
|
+
|
1877
2093
|
# Complete log information about a single HTTP request to an App Engine
|
1878
2094
|
# application.
|
1879
2095
|
class RequestLog
|
@@ -2169,6 +2385,45 @@ module Google
|
|
2169
2385
|
end
|
2170
2386
|
end
|
2171
2387
|
|
2388
|
+
# The Status type defines a logical error model that is suitable for different
|
2389
|
+
# programming environments, including REST APIs and RPC APIs. It is used by gRPC
|
2390
|
+
# (https://github.com/grpc). Each Status message contains three pieces of data:
|
2391
|
+
# error code, error message, and error details.You can find out more about this
|
2392
|
+
# error model and how to work with it in the API Design Guide (https://cloud.
|
2393
|
+
# google.com/apis/design/errors).
|
2394
|
+
class Status
|
2395
|
+
include Google::Apis::Core::Hashable
|
2396
|
+
|
2397
|
+
# The status code, which should be an enum value of google.rpc.Code.
|
2398
|
+
# Corresponds to the JSON property `code`
|
2399
|
+
# @return [Fixnum]
|
2400
|
+
attr_accessor :code
|
2401
|
+
|
2402
|
+
# A list of messages that carry the error details. There is a common set of
|
2403
|
+
# message types for APIs to use.
|
2404
|
+
# Corresponds to the JSON property `details`
|
2405
|
+
# @return [Array<Hash<String,Object>>]
|
2406
|
+
attr_accessor :details
|
2407
|
+
|
2408
|
+
# A developer-facing error message, which should be in English. Any user-facing
|
2409
|
+
# error message should be localized and sent in the google.rpc.Status.details
|
2410
|
+
# field, or localized by the client.
|
2411
|
+
# Corresponds to the JSON property `message`
|
2412
|
+
# @return [String]
|
2413
|
+
attr_accessor :message
|
2414
|
+
|
2415
|
+
def initialize(**args)
|
2416
|
+
update!(**args)
|
2417
|
+
end
|
2418
|
+
|
2419
|
+
# Update properties of this object
|
2420
|
+
def update!(**args)
|
2421
|
+
@code = args[:code] if args.key?(:code)
|
2422
|
+
@details = args[:details] if args.key?(:details)
|
2423
|
+
@message = args[:message] if args.key?(:message)
|
2424
|
+
end
|
2425
|
+
end
|
2426
|
+
|
2172
2427
|
# Information about entries that were omitted from the session.
|
2173
2428
|
class SuppressionInfo
|
2174
2429
|
include Google::Apis::Core::Hashable
|
@@ -2305,13 +2560,13 @@ module Google
|
|
2305
2560
|
# that did not supply their own values, the entries earlier in the list will
|
2306
2561
|
# sort before the entries later in the list. See the entries.list method.Log
|
2307
2562
|
# entries with timestamps that are more than the logs retention period (https://
|
2308
|
-
# cloud.google.com/logging/
|
2309
|
-
#
|
2563
|
+
# cloud.google.com/logging/quotas) in the past or more than 24 hours in the
|
2564
|
+
# future will not be available when calling entries.list. However, those log
|
2310
2565
|
# entries can still be exported with LogSinks (https://cloud.google.com/logging/
|
2311
2566
|
# docs/api/tasks/exporting-logs).To improve throughput and to avoid exceeding
|
2312
|
-
# the quota limit (https://cloud.google.com/logging/
|
2313
|
-
#
|
2314
|
-
#
|
2567
|
+
# the quota limit (https://cloud.google.com/logging/quotas) for calls to entries.
|
2568
|
+
# write, you should try to include several log entries in this list, rather than
|
2569
|
+
# calling this method for each individual log entry.
|
2315
2570
|
# Corresponds to the JSON property `entries`
|
2316
2571
|
# @return [Array<Google::Apis::LoggingV2::LogEntry>]
|
2317
2572
|
attr_accessor :entries
|
@@ -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.15.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
|
-
GENERATOR_VERSION = "0.
|
22
|
+
GENERATOR_VERSION = "0.4.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20210922"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|