google-apis-logging_v2 0.10.0 → 0.14.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +17 -0
- data/lib/google/apis/logging_v2/classes.rb +397 -68
- data/lib/google/apis/logging_v2/gem_version.rb +3 -3
- data/lib/google/apis/logging_v2/representations.rb +142 -0
- data/lib/google/apis/logging_v2/service.rb +978 -364
- data/lib/google/apis/logging_v2.rb +2 -2
- metadata +13 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 99eb340cae719bbee3780f6a462bf20d66ca05543f9efd8112f5efe7cdd04b3b
|
4
|
+
data.tar.gz: a0afc97148ecb57488187fdedf506ff8a10e426a886c4eb44b6126ca016f24cd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f4d044d31bcf3a0913b784f06453bf2ef9709528cebe9da1dbcdfeaa2fc68e5c70f080995ce572b58066b5dae64d61d78c0dd1244b888c0ea484a1ce7fc4105a
|
7
|
+
data.tar.gz: f41e88bc83750a7c9f1f8ad6ceb236b93caa6225f97156049d8c23d1fc39862a912875cc40f61a16de5a32521a68d63cdc5da07265b11f8c69ac7a66dc195ad4
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,22 @@
|
|
1
1
|
# Release history for google-apis-logging_v2
|
2
2
|
|
3
|
+
### v0.14.0 (2021-09-01)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20210817
|
6
|
+
|
7
|
+
### v0.13.0 (2021-07-16)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20210709
|
10
|
+
|
11
|
+
### v0.12.0 (2021-07-03)
|
12
|
+
|
13
|
+
* Regenerated from discovery document revision 20210625
|
14
|
+
* Regenerated using generator version 0.4.0
|
15
|
+
|
16
|
+
### v0.11.0 (2021-06-24)
|
17
|
+
|
18
|
+
* Unspecified changes
|
19
|
+
|
3
20
|
### v0.10.0 (2021-06-12)
|
4
21
|
|
5
22
|
* Regenerated from discovery document revision 20210522
|
@@ -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,19 +1680,24 @@ 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
|
1544
1695
|
|
1696
|
+
# Schema of a table containing logs.
|
1697
|
+
# Corresponds to the JSON property `schema`
|
1698
|
+
# @return [Google::Apis::LoggingV2::TableSchema]
|
1699
|
+
attr_accessor :schema
|
1700
|
+
|
1545
1701
|
# Output only. The last update timestamp of the view.
|
1546
1702
|
# Corresponds to the JSON property `updateTime`
|
1547
1703
|
# @return [String]
|
@@ -1557,6 +1713,7 @@ module Google
|
|
1557
1713
|
@description = args[:description] if args.key?(:description)
|
1558
1714
|
@filter = args[:filter] if args.key?(:filter)
|
1559
1715
|
@name = args[:name] if args.key?(:name)
|
1716
|
+
@schema = args[:schema] if args.key?(:schema)
|
1560
1717
|
@update_time = args[:update_time] if args.key?(:update_time)
|
1561
1718
|
end
|
1562
1719
|
end
|
@@ -1821,7 +1978,10 @@ module Google
|
|
1821
1978
|
attr_accessor :name
|
1822
1979
|
|
1823
1980
|
# Required. The monitored resource type. For example, the type "
|
1824
|
-
# cloudsql_database" represents databases in Google Cloud SQL.
|
1981
|
+
# cloudsql_database" represents databases in Google Cloud SQL. For a list of
|
1982
|
+
# types, see Monitoring resource types (https://cloud.google.com/monitoring/api/
|
1983
|
+
# resources) and Logging resource types (https://cloud.google.com/logging/docs/
|
1984
|
+
# api/v2/resource-list).
|
1825
1985
|
# Corresponds to the JSON property `type`
|
1826
1986
|
# @return [String]
|
1827
1987
|
attr_accessor :type
|
@@ -1874,6 +2034,68 @@ module Google
|
|
1874
2034
|
end
|
1875
2035
|
end
|
1876
2036
|
|
2037
|
+
# This resource represents a long-running operation that is the result of a
|
2038
|
+
# network API call.
|
2039
|
+
class Operation
|
2040
|
+
include Google::Apis::Core::Hashable
|
2041
|
+
|
2042
|
+
# If the value is false, it means the operation is still in progress. If true,
|
2043
|
+
# the operation is completed, and either error or response is available.
|
2044
|
+
# Corresponds to the JSON property `done`
|
2045
|
+
# @return [Boolean]
|
2046
|
+
attr_accessor :done
|
2047
|
+
alias_method :done?, :done
|
2048
|
+
|
2049
|
+
# The Status type defines a logical error model that is suitable for different
|
2050
|
+
# programming environments, including REST APIs and RPC APIs. It is used by gRPC
|
2051
|
+
# (https://github.com/grpc). Each Status message contains three pieces of data:
|
2052
|
+
# error code, error message, and error details.You can find out more about this
|
2053
|
+
# error model and how to work with it in the API Design Guide (https://cloud.
|
2054
|
+
# google.com/apis/design/errors).
|
2055
|
+
# Corresponds to the JSON property `error`
|
2056
|
+
# @return [Google::Apis::LoggingV2::Status]
|
2057
|
+
attr_accessor :error
|
2058
|
+
|
2059
|
+
# Service-specific metadata associated with the operation. It typically contains
|
2060
|
+
# progress information and common metadata such as create time. Some services
|
2061
|
+
# might not provide such metadata. Any method that returns a long-running
|
2062
|
+
# operation should document the metadata type, if any.
|
2063
|
+
# Corresponds to the JSON property `metadata`
|
2064
|
+
# @return [Hash<String,Object>]
|
2065
|
+
attr_accessor :metadata
|
2066
|
+
|
2067
|
+
# The server-assigned name, which is only unique within the same service that
|
2068
|
+
# originally returns it. If you use the default HTTP mapping, the name should be
|
2069
|
+
# a resource name ending with operations/`unique_id`.
|
2070
|
+
# Corresponds to the JSON property `name`
|
2071
|
+
# @return [String]
|
2072
|
+
attr_accessor :name
|
2073
|
+
|
2074
|
+
# The normal response of the operation in case of success. If the original
|
2075
|
+
# method returns no data on success, such as Delete, the response is google.
|
2076
|
+
# protobuf.Empty. If the original method is standard Get/Create/Update, the
|
2077
|
+
# response should be the resource. For other methods, the response should have
|
2078
|
+
# the type XxxResponse, where Xxx is the original method name. For example, if
|
2079
|
+
# the original method name is TakeSnapshot(), the inferred response type is
|
2080
|
+
# TakeSnapshotResponse.
|
2081
|
+
# Corresponds to the JSON property `response`
|
2082
|
+
# @return [Hash<String,Object>]
|
2083
|
+
attr_accessor :response
|
2084
|
+
|
2085
|
+
def initialize(**args)
|
2086
|
+
update!(**args)
|
2087
|
+
end
|
2088
|
+
|
2089
|
+
# Update properties of this object
|
2090
|
+
def update!(**args)
|
2091
|
+
@done = args[:done] if args.key?(:done)
|
2092
|
+
@error = args[:error] if args.key?(:error)
|
2093
|
+
@metadata = args[:metadata] if args.key?(:metadata)
|
2094
|
+
@name = args[:name] if args.key?(:name)
|
2095
|
+
@response = args[:response] if args.key?(:response)
|
2096
|
+
end
|
2097
|
+
end
|
2098
|
+
|
1877
2099
|
# Complete log information about a single HTTP request to an App Engine
|
1878
2100
|
# application.
|
1879
2101
|
class RequestLog
|
@@ -2169,6 +2391,45 @@ module Google
|
|
2169
2391
|
end
|
2170
2392
|
end
|
2171
2393
|
|
2394
|
+
# The Status type defines a logical error model that is suitable for different
|
2395
|
+
# programming environments, including REST APIs and RPC APIs. It is used by gRPC
|
2396
|
+
# (https://github.com/grpc). Each Status message contains three pieces of data:
|
2397
|
+
# error code, error message, and error details.You can find out more about this
|
2398
|
+
# error model and how to work with it in the API Design Guide (https://cloud.
|
2399
|
+
# google.com/apis/design/errors).
|
2400
|
+
class Status
|
2401
|
+
include Google::Apis::Core::Hashable
|
2402
|
+
|
2403
|
+
# The status code, which should be an enum value of google.rpc.Code.
|
2404
|
+
# Corresponds to the JSON property `code`
|
2405
|
+
# @return [Fixnum]
|
2406
|
+
attr_accessor :code
|
2407
|
+
|
2408
|
+
# A list of messages that carry the error details. There is a common set of
|
2409
|
+
# message types for APIs to use.
|
2410
|
+
# Corresponds to the JSON property `details`
|
2411
|
+
# @return [Array<Hash<String,Object>>]
|
2412
|
+
attr_accessor :details
|
2413
|
+
|
2414
|
+
# A developer-facing error message, which should be in English. Any user-facing
|
2415
|
+
# error message should be localized and sent in the google.rpc.Status.details
|
2416
|
+
# field, or localized by the client.
|
2417
|
+
# Corresponds to the JSON property `message`
|
2418
|
+
# @return [String]
|
2419
|
+
attr_accessor :message
|
2420
|
+
|
2421
|
+
def initialize(**args)
|
2422
|
+
update!(**args)
|
2423
|
+
end
|
2424
|
+
|
2425
|
+
# Update properties of this object
|
2426
|
+
def update!(**args)
|
2427
|
+
@code = args[:code] if args.key?(:code)
|
2428
|
+
@details = args[:details] if args.key?(:details)
|
2429
|
+
@message = args[:message] if args.key?(:message)
|
2430
|
+
end
|
2431
|
+
end
|
2432
|
+
|
2172
2433
|
# Information about entries that were omitted from the session.
|
2173
2434
|
class SuppressionInfo
|
2174
2435
|
include Google::Apis::Core::Hashable
|
@@ -2194,6 +2455,74 @@ module Google
|
|
2194
2455
|
end
|
2195
2456
|
end
|
2196
2457
|
|
2458
|
+
# A field in TableSchema. The fields describe the static fields in the LogEntry.
|
2459
|
+
# Any dynamic fields generated by the customer in fields like labels and
|
2460
|
+
# jsonPayload are not listed in the schema as they use a native JSON type field.
|
2461
|
+
class TableFieldSchema
|
2462
|
+
include Google::Apis::Core::Hashable
|
2463
|
+
|
2464
|
+
# Optional. The field description.
|
2465
|
+
# Corresponds to the JSON property `description`
|
2466
|
+
# @return [String]
|
2467
|
+
attr_accessor :description
|
2468
|
+
|
2469
|
+
# Optional. Describes the nested schema fields if the type property is set to
|
2470
|
+
# RECORD.
|
2471
|
+
# Corresponds to the JSON property `fields`
|
2472
|
+
# @return [Array<Google::Apis::LoggingV2::TableFieldSchema>]
|
2473
|
+
attr_accessor :fields
|
2474
|
+
|
2475
|
+
# Optional. The field mode. Possible values include NULLABLE, REQUIRED and
|
2476
|
+
# REPEATED. The default value is NULLABLE.
|
2477
|
+
# Corresponds to the JSON property `mode`
|
2478
|
+
# @return [String]
|
2479
|
+
attr_accessor :mode
|
2480
|
+
|
2481
|
+
# Required. The field name corresponding to fields in the LogEntry.
|
2482
|
+
# Corresponds to the JSON property `name`
|
2483
|
+
# @return [String]
|
2484
|
+
attr_accessor :name
|
2485
|
+
|
2486
|
+
# Required. The field data type. Possible values include: STRING INTEGER (or
|
2487
|
+
# INT64) FLOAT (or FLOAT64) BOOLEAN (or BOOL) TIMESTAMP RECORD (or STRUCT)Use of
|
2488
|
+
# RECORD/STRUT indicates that the field contains a nested schema.
|
2489
|
+
# Corresponds to the JSON property `type`
|
2490
|
+
# @return [String]
|
2491
|
+
attr_accessor :type
|
2492
|
+
|
2493
|
+
def initialize(**args)
|
2494
|
+
update!(**args)
|
2495
|
+
end
|
2496
|
+
|
2497
|
+
# Update properties of this object
|
2498
|
+
def update!(**args)
|
2499
|
+
@description = args[:description] if args.key?(:description)
|
2500
|
+
@fields = args[:fields] if args.key?(:fields)
|
2501
|
+
@mode = args[:mode] if args.key?(:mode)
|
2502
|
+
@name = args[:name] if args.key?(:name)
|
2503
|
+
@type = args[:type] if args.key?(:type)
|
2504
|
+
end
|
2505
|
+
end
|
2506
|
+
|
2507
|
+
# Schema of a table containing logs.
|
2508
|
+
class TableSchema
|
2509
|
+
include Google::Apis::Core::Hashable
|
2510
|
+
|
2511
|
+
# Describes the fields in a table.
|
2512
|
+
# Corresponds to the JSON property `fields`
|
2513
|
+
# @return [Array<Google::Apis::LoggingV2::TableFieldSchema>]
|
2514
|
+
attr_accessor :fields
|
2515
|
+
|
2516
|
+
def initialize(**args)
|
2517
|
+
update!(**args)
|
2518
|
+
end
|
2519
|
+
|
2520
|
+
# Update properties of this object
|
2521
|
+
def update!(**args)
|
2522
|
+
@fields = args[:fields] if args.key?(:fields)
|
2523
|
+
end
|
2524
|
+
end
|
2525
|
+
|
2197
2526
|
# The parameters to TailLogEntries.
|
2198
2527
|
class TailLogEntriesRequest
|
2199
2528
|
include Google::Apis::Core::Hashable
|
@@ -2305,13 +2634,13 @@ module Google
|
|
2305
2634
|
# that did not supply their own values, the entries earlier in the list will
|
2306
2635
|
# sort before the entries later in the list. See the entries.list method.Log
|
2307
2636
|
# entries with timestamps that are more than the logs retention period (https://
|
2308
|
-
# cloud.google.com/logging/
|
2309
|
-
#
|
2637
|
+
# cloud.google.com/logging/quotas) in the past or more than 24 hours in the
|
2638
|
+
# future will not be available when calling entries.list. However, those log
|
2310
2639
|
# entries can still be exported with LogSinks (https://cloud.google.com/logging/
|
2311
2640
|
# docs/api/tasks/exporting-logs).To improve throughput and to avoid exceeding
|
2312
|
-
# the quota limit (https://cloud.google.com/logging/
|
2313
|
-
#
|
2314
|
-
#
|
2641
|
+
# the quota limit (https://cloud.google.com/logging/quotas) for calls to entries.
|
2642
|
+
# write, you should try to include several log entries in this list, rather than
|
2643
|
+
# calling this method for each individual log entry.
|
2315
2644
|
# Corresponds to the JSON property `entries`
|
2316
2645
|
# @return [Array<Google::Apis::LoggingV2::LogEntry>]
|
2317
2646
|
attr_accessor :entries
|