google-apis-logging_v2 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,28 @@
1
+ # Copyright 2020 Google LLC
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ module Google
16
+ module Apis
17
+ module LoggingV2
18
+ # Version of the google-apis-logging_v2 gem
19
+ GEM_VERSION = "0.1.0"
20
+
21
+ # Version of the code generator used to generate this client
22
+ GENERATOR_VERSION = "0.1.1"
23
+
24
+ # Revision of the discovery document this client was generated from
25
+ REVISION = "20201114"
26
+ end
27
+ end
28
+ end
@@ -0,0 +1,777 @@
1
+ # Copyright 2020 Google LLC
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ require 'date'
16
+ require 'google/apis/core/base_service'
17
+ require 'google/apis/core/json_representation'
18
+ require 'google/apis/core/hashable'
19
+ require 'google/apis/errors'
20
+
21
+ module Google
22
+ module Apis
23
+ module LoggingV2
24
+
25
+ class BigQueryOptions
26
+ class Representation < Google::Apis::Core::JsonRepresentation; end
27
+
28
+ include Google::Apis::Core::JsonObjectSupport
29
+ end
30
+
31
+ class BucketOptions
32
+ class Representation < Google::Apis::Core::JsonRepresentation; end
33
+
34
+ include Google::Apis::Core::JsonObjectSupport
35
+ end
36
+
37
+ class CmekSettings
38
+ class Representation < Google::Apis::Core::JsonRepresentation; end
39
+
40
+ include Google::Apis::Core::JsonObjectSupport
41
+ end
42
+
43
+ class Empty
44
+ class Representation < Google::Apis::Core::JsonRepresentation; end
45
+
46
+ include Google::Apis::Core::JsonObjectSupport
47
+ end
48
+
49
+ class Explicit
50
+ class Representation < Google::Apis::Core::JsonRepresentation; end
51
+
52
+ include Google::Apis::Core::JsonObjectSupport
53
+ end
54
+
55
+ class Exponential
56
+ class Representation < Google::Apis::Core::JsonRepresentation; end
57
+
58
+ include Google::Apis::Core::JsonObjectSupport
59
+ end
60
+
61
+ class HttpRequest
62
+ class Representation < Google::Apis::Core::JsonRepresentation; end
63
+
64
+ include Google::Apis::Core::JsonObjectSupport
65
+ end
66
+
67
+ class LabelDescriptor
68
+ class Representation < Google::Apis::Core::JsonRepresentation; end
69
+
70
+ include Google::Apis::Core::JsonObjectSupport
71
+ end
72
+
73
+ class Linear
74
+ class Representation < Google::Apis::Core::JsonRepresentation; end
75
+
76
+ include Google::Apis::Core::JsonObjectSupport
77
+ end
78
+
79
+ class ListBucketsResponse
80
+ class Representation < Google::Apis::Core::JsonRepresentation; end
81
+
82
+ include Google::Apis::Core::JsonObjectSupport
83
+ end
84
+
85
+ class ListExclusionsResponse
86
+ class Representation < Google::Apis::Core::JsonRepresentation; end
87
+
88
+ include Google::Apis::Core::JsonObjectSupport
89
+ end
90
+
91
+ class ListLocationsResponse
92
+ class Representation < Google::Apis::Core::JsonRepresentation; end
93
+
94
+ include Google::Apis::Core::JsonObjectSupport
95
+ end
96
+
97
+ class ListLogEntriesRequest
98
+ class Representation < Google::Apis::Core::JsonRepresentation; end
99
+
100
+ include Google::Apis::Core::JsonObjectSupport
101
+ end
102
+
103
+ class ListLogEntriesResponse
104
+ class Representation < Google::Apis::Core::JsonRepresentation; end
105
+
106
+ include Google::Apis::Core::JsonObjectSupport
107
+ end
108
+
109
+ class ListLogMetricsResponse
110
+ class Representation < Google::Apis::Core::JsonRepresentation; end
111
+
112
+ include Google::Apis::Core::JsonObjectSupport
113
+ end
114
+
115
+ class ListLogsResponse
116
+ class Representation < Google::Apis::Core::JsonRepresentation; end
117
+
118
+ include Google::Apis::Core::JsonObjectSupport
119
+ end
120
+
121
+ class ListMonitoredResourceDescriptorsResponse
122
+ class Representation < Google::Apis::Core::JsonRepresentation; end
123
+
124
+ include Google::Apis::Core::JsonObjectSupport
125
+ end
126
+
127
+ class ListSinksResponse
128
+ class Representation < Google::Apis::Core::JsonRepresentation; end
129
+
130
+ include Google::Apis::Core::JsonObjectSupport
131
+ end
132
+
133
+ class ListViewsResponse
134
+ class Representation < Google::Apis::Core::JsonRepresentation; end
135
+
136
+ include Google::Apis::Core::JsonObjectSupport
137
+ end
138
+
139
+ class Location
140
+ class Representation < Google::Apis::Core::JsonRepresentation; end
141
+
142
+ include Google::Apis::Core::JsonObjectSupport
143
+ end
144
+
145
+ class LogBucket
146
+ class Representation < Google::Apis::Core::JsonRepresentation; end
147
+
148
+ include Google::Apis::Core::JsonObjectSupport
149
+ end
150
+
151
+ class LogEntry
152
+ class Representation < Google::Apis::Core::JsonRepresentation; end
153
+
154
+ include Google::Apis::Core::JsonObjectSupport
155
+ end
156
+
157
+ class LogEntryOperation
158
+ class Representation < Google::Apis::Core::JsonRepresentation; end
159
+
160
+ include Google::Apis::Core::JsonObjectSupport
161
+ end
162
+
163
+ class LogEntrySourceLocation
164
+ class Representation < Google::Apis::Core::JsonRepresentation; end
165
+
166
+ include Google::Apis::Core::JsonObjectSupport
167
+ end
168
+
169
+ class LogExclusion
170
+ class Representation < Google::Apis::Core::JsonRepresentation; end
171
+
172
+ include Google::Apis::Core::JsonObjectSupport
173
+ end
174
+
175
+ class LogLine
176
+ class Representation < Google::Apis::Core::JsonRepresentation; end
177
+
178
+ include Google::Apis::Core::JsonObjectSupport
179
+ end
180
+
181
+ class LogMetric
182
+ class Representation < Google::Apis::Core::JsonRepresentation; end
183
+
184
+ include Google::Apis::Core::JsonObjectSupport
185
+ end
186
+
187
+ class LogSink
188
+ class Representation < Google::Apis::Core::JsonRepresentation; end
189
+
190
+ include Google::Apis::Core::JsonObjectSupport
191
+ end
192
+
193
+ class LogView
194
+ class Representation < Google::Apis::Core::JsonRepresentation; end
195
+
196
+ include Google::Apis::Core::JsonObjectSupport
197
+ end
198
+
199
+ class MetricDescriptor
200
+ class Representation < Google::Apis::Core::JsonRepresentation; end
201
+
202
+ include Google::Apis::Core::JsonObjectSupport
203
+ end
204
+
205
+ class MetricDescriptorMetadata
206
+ class Representation < Google::Apis::Core::JsonRepresentation; end
207
+
208
+ include Google::Apis::Core::JsonObjectSupport
209
+ end
210
+
211
+ class MonitoredResource
212
+ class Representation < Google::Apis::Core::JsonRepresentation; end
213
+
214
+ include Google::Apis::Core::JsonObjectSupport
215
+ end
216
+
217
+ class MonitoredResourceDescriptor
218
+ class Representation < Google::Apis::Core::JsonRepresentation; end
219
+
220
+ include Google::Apis::Core::JsonObjectSupport
221
+ end
222
+
223
+ class MonitoredResourceMetadata
224
+ class Representation < Google::Apis::Core::JsonRepresentation; end
225
+
226
+ include Google::Apis::Core::JsonObjectSupport
227
+ end
228
+
229
+ class RequestLog
230
+ class Representation < Google::Apis::Core::JsonRepresentation; end
231
+
232
+ include Google::Apis::Core::JsonObjectSupport
233
+ end
234
+
235
+ class SourceLocation
236
+ class Representation < Google::Apis::Core::JsonRepresentation; end
237
+
238
+ include Google::Apis::Core::JsonObjectSupport
239
+ end
240
+
241
+ class SourceReference
242
+ class Representation < Google::Apis::Core::JsonRepresentation; end
243
+
244
+ include Google::Apis::Core::JsonObjectSupport
245
+ end
246
+
247
+ class SuppressionInfo
248
+ class Representation < Google::Apis::Core::JsonRepresentation; end
249
+
250
+ include Google::Apis::Core::JsonObjectSupport
251
+ end
252
+
253
+ class TailLogEntriesRequest
254
+ class Representation < Google::Apis::Core::JsonRepresentation; end
255
+
256
+ include Google::Apis::Core::JsonObjectSupport
257
+ end
258
+
259
+ class TailLogEntriesResponse
260
+ class Representation < Google::Apis::Core::JsonRepresentation; end
261
+
262
+ include Google::Apis::Core::JsonObjectSupport
263
+ end
264
+
265
+ class UndeleteBucketRequest
266
+ class Representation < Google::Apis::Core::JsonRepresentation; end
267
+
268
+ include Google::Apis::Core::JsonObjectSupport
269
+ end
270
+
271
+ class WriteLogEntriesRequest
272
+ class Representation < Google::Apis::Core::JsonRepresentation; end
273
+
274
+ include Google::Apis::Core::JsonObjectSupport
275
+ end
276
+
277
+ class WriteLogEntriesResponse
278
+ class Representation < Google::Apis::Core::JsonRepresentation; end
279
+
280
+ include Google::Apis::Core::JsonObjectSupport
281
+ end
282
+
283
+ class BigQueryOptions
284
+ # @private
285
+ class Representation < Google::Apis::Core::JsonRepresentation
286
+ property :use_partitioned_tables, as: 'usePartitionedTables'
287
+ property :uses_timestamp_column_partitioning, as: 'usesTimestampColumnPartitioning'
288
+ end
289
+ end
290
+
291
+ class BucketOptions
292
+ # @private
293
+ class Representation < Google::Apis::Core::JsonRepresentation
294
+ property :explicit_buckets, as: 'explicitBuckets', class: Google::Apis::LoggingV2::Explicit, decorator: Google::Apis::LoggingV2::Explicit::Representation
295
+
296
+ property :exponential_buckets, as: 'exponentialBuckets', class: Google::Apis::LoggingV2::Exponential, decorator: Google::Apis::LoggingV2::Exponential::Representation
297
+
298
+ property :linear_buckets, as: 'linearBuckets', class: Google::Apis::LoggingV2::Linear, decorator: Google::Apis::LoggingV2::Linear::Representation
299
+
300
+ end
301
+ end
302
+
303
+ class CmekSettings
304
+ # @private
305
+ class Representation < Google::Apis::Core::JsonRepresentation
306
+ property :kms_key_name, as: 'kmsKeyName'
307
+ property :name, as: 'name'
308
+ property :service_account_id, as: 'serviceAccountId'
309
+ end
310
+ end
311
+
312
+ class Empty
313
+ # @private
314
+ class Representation < Google::Apis::Core::JsonRepresentation
315
+ end
316
+ end
317
+
318
+ class Explicit
319
+ # @private
320
+ class Representation < Google::Apis::Core::JsonRepresentation
321
+ collection :bounds, as: 'bounds'
322
+ end
323
+ end
324
+
325
+ class Exponential
326
+ # @private
327
+ class Representation < Google::Apis::Core::JsonRepresentation
328
+ property :growth_factor, as: 'growthFactor'
329
+ property :num_finite_buckets, as: 'numFiniteBuckets'
330
+ property :scale, as: 'scale'
331
+ end
332
+ end
333
+
334
+ class HttpRequest
335
+ # @private
336
+ class Representation < Google::Apis::Core::JsonRepresentation
337
+ property :cache_fill_bytes, :numeric_string => true, as: 'cacheFillBytes'
338
+ property :cache_hit, as: 'cacheHit'
339
+ property :cache_lookup, as: 'cacheLookup'
340
+ property :cache_validated_with_origin_server, as: 'cacheValidatedWithOriginServer'
341
+ property :latency, as: 'latency'
342
+ property :protocol, as: 'protocol'
343
+ property :referer, as: 'referer'
344
+ property :remote_ip, as: 'remoteIp'
345
+ property :request_method, as: 'requestMethod'
346
+ property :request_size, :numeric_string => true, as: 'requestSize'
347
+ property :request_url, as: 'requestUrl'
348
+ property :response_size, :numeric_string => true, as: 'responseSize'
349
+ property :server_ip, as: 'serverIp'
350
+ property :status, as: 'status'
351
+ property :user_agent, as: 'userAgent'
352
+ end
353
+ end
354
+
355
+ class LabelDescriptor
356
+ # @private
357
+ class Representation < Google::Apis::Core::JsonRepresentation
358
+ property :description, as: 'description'
359
+ property :key, as: 'key'
360
+ property :value_type, as: 'valueType'
361
+ end
362
+ end
363
+
364
+ class Linear
365
+ # @private
366
+ class Representation < Google::Apis::Core::JsonRepresentation
367
+ property :num_finite_buckets, as: 'numFiniteBuckets'
368
+ property :offset, as: 'offset'
369
+ property :width, as: 'width'
370
+ end
371
+ end
372
+
373
+ class ListBucketsResponse
374
+ # @private
375
+ class Representation < Google::Apis::Core::JsonRepresentation
376
+ collection :buckets, as: 'buckets', class: Google::Apis::LoggingV2::LogBucket, decorator: Google::Apis::LoggingV2::LogBucket::Representation
377
+
378
+ property :next_page_token, as: 'nextPageToken'
379
+ end
380
+ end
381
+
382
+ class ListExclusionsResponse
383
+ # @private
384
+ class Representation < Google::Apis::Core::JsonRepresentation
385
+ collection :exclusions, as: 'exclusions', class: Google::Apis::LoggingV2::LogExclusion, decorator: Google::Apis::LoggingV2::LogExclusion::Representation
386
+
387
+ property :next_page_token, as: 'nextPageToken'
388
+ end
389
+ end
390
+
391
+ class ListLocationsResponse
392
+ # @private
393
+ class Representation < Google::Apis::Core::JsonRepresentation
394
+ collection :locations, as: 'locations', class: Google::Apis::LoggingV2::Location, decorator: Google::Apis::LoggingV2::Location::Representation
395
+
396
+ property :next_page_token, as: 'nextPageToken'
397
+ end
398
+ end
399
+
400
+ class ListLogEntriesRequest
401
+ # @private
402
+ class Representation < Google::Apis::Core::JsonRepresentation
403
+ property :filter, as: 'filter'
404
+ property :order_by, as: 'orderBy'
405
+ property :page_size, as: 'pageSize'
406
+ property :page_token, as: 'pageToken'
407
+ collection :project_ids, as: 'projectIds'
408
+ collection :resource_names, as: 'resourceNames'
409
+ end
410
+ end
411
+
412
+ class ListLogEntriesResponse
413
+ # @private
414
+ class Representation < Google::Apis::Core::JsonRepresentation
415
+ collection :entries, as: 'entries', class: Google::Apis::LoggingV2::LogEntry, decorator: Google::Apis::LoggingV2::LogEntry::Representation
416
+
417
+ property :next_page_token, as: 'nextPageToken'
418
+ end
419
+ end
420
+
421
+ class ListLogMetricsResponse
422
+ # @private
423
+ class Representation < Google::Apis::Core::JsonRepresentation
424
+ collection :metrics, as: 'metrics', class: Google::Apis::LoggingV2::LogMetric, decorator: Google::Apis::LoggingV2::LogMetric::Representation
425
+
426
+ property :next_page_token, as: 'nextPageToken'
427
+ end
428
+ end
429
+
430
+ class ListLogsResponse
431
+ # @private
432
+ class Representation < Google::Apis::Core::JsonRepresentation
433
+ collection :log_names, as: 'logNames'
434
+ property :next_page_token, as: 'nextPageToken'
435
+ end
436
+ end
437
+
438
+ class ListMonitoredResourceDescriptorsResponse
439
+ # @private
440
+ class Representation < Google::Apis::Core::JsonRepresentation
441
+ property :next_page_token, as: 'nextPageToken'
442
+ collection :resource_descriptors, as: 'resourceDescriptors', class: Google::Apis::LoggingV2::MonitoredResourceDescriptor, decorator: Google::Apis::LoggingV2::MonitoredResourceDescriptor::Representation
443
+
444
+ end
445
+ end
446
+
447
+ class ListSinksResponse
448
+ # @private
449
+ class Representation < Google::Apis::Core::JsonRepresentation
450
+ property :next_page_token, as: 'nextPageToken'
451
+ collection :sinks, as: 'sinks', class: Google::Apis::LoggingV2::LogSink, decorator: Google::Apis::LoggingV2::LogSink::Representation
452
+
453
+ end
454
+ end
455
+
456
+ class ListViewsResponse
457
+ # @private
458
+ class Representation < Google::Apis::Core::JsonRepresentation
459
+ property :next_page_token, as: 'nextPageToken'
460
+ collection :views, as: 'views', class: Google::Apis::LoggingV2::LogView, decorator: Google::Apis::LoggingV2::LogView::Representation
461
+
462
+ end
463
+ end
464
+
465
+ class Location
466
+ # @private
467
+ class Representation < Google::Apis::Core::JsonRepresentation
468
+ property :display_name, as: 'displayName'
469
+ hash :labels, as: 'labels'
470
+ property :location_id, as: 'locationId'
471
+ hash :metadata, as: 'metadata'
472
+ property :name, as: 'name'
473
+ end
474
+ end
475
+
476
+ class LogBucket
477
+ # @private
478
+ class Representation < Google::Apis::Core::JsonRepresentation
479
+ property :create_time, as: 'createTime'
480
+ property :description, as: 'description'
481
+ property :lifecycle_state, as: 'lifecycleState'
482
+ property :locked, as: 'locked'
483
+ property :name, as: 'name'
484
+ property :retention_days, as: 'retentionDays'
485
+ property :update_time, as: 'updateTime'
486
+ end
487
+ end
488
+
489
+ class LogEntry
490
+ # @private
491
+ class Representation < Google::Apis::Core::JsonRepresentation
492
+ property :http_request, as: 'httpRequest', class: Google::Apis::LoggingV2::HttpRequest, decorator: Google::Apis::LoggingV2::HttpRequest::Representation
493
+
494
+ property :insert_id, as: 'insertId'
495
+ hash :json_payload, as: 'jsonPayload'
496
+ hash :labels, as: 'labels'
497
+ property :log_name, as: 'logName'
498
+ property :metadata, as: 'metadata', class: Google::Apis::LoggingV2::MonitoredResourceMetadata, decorator: Google::Apis::LoggingV2::MonitoredResourceMetadata::Representation
499
+
500
+ property :operation, as: 'operation', class: Google::Apis::LoggingV2::LogEntryOperation, decorator: Google::Apis::LoggingV2::LogEntryOperation::Representation
501
+
502
+ hash :proto_payload, as: 'protoPayload'
503
+ property :receive_timestamp, as: 'receiveTimestamp'
504
+ property :resource, as: 'resource', class: Google::Apis::LoggingV2::MonitoredResource, decorator: Google::Apis::LoggingV2::MonitoredResource::Representation
505
+
506
+ property :severity, as: 'severity'
507
+ property :source_location, as: 'sourceLocation', class: Google::Apis::LoggingV2::LogEntrySourceLocation, decorator: Google::Apis::LoggingV2::LogEntrySourceLocation::Representation
508
+
509
+ property :span_id, as: 'spanId'
510
+ property :text_payload, as: 'textPayload'
511
+ property :timestamp, as: 'timestamp'
512
+ property :trace, as: 'trace'
513
+ property :trace_sampled, as: 'traceSampled'
514
+ end
515
+ end
516
+
517
+ class LogEntryOperation
518
+ # @private
519
+ class Representation < Google::Apis::Core::JsonRepresentation
520
+ property :first, as: 'first'
521
+ property :id, as: 'id'
522
+ property :last, as: 'last'
523
+ property :producer, as: 'producer'
524
+ end
525
+ end
526
+
527
+ class LogEntrySourceLocation
528
+ # @private
529
+ class Representation < Google::Apis::Core::JsonRepresentation
530
+ property :file, as: 'file'
531
+ property :function, as: 'function'
532
+ property :line, :numeric_string => true, as: 'line'
533
+ end
534
+ end
535
+
536
+ class LogExclusion
537
+ # @private
538
+ class Representation < Google::Apis::Core::JsonRepresentation
539
+ property :create_time, as: 'createTime'
540
+ property :description, as: 'description'
541
+ property :disabled, as: 'disabled'
542
+ property :filter, as: 'filter'
543
+ property :name, as: 'name'
544
+ property :update_time, as: 'updateTime'
545
+ end
546
+ end
547
+
548
+ class LogLine
549
+ # @private
550
+ class Representation < Google::Apis::Core::JsonRepresentation
551
+ property :log_message, as: 'logMessage'
552
+ property :severity, as: 'severity'
553
+ property :source_location, as: 'sourceLocation', class: Google::Apis::LoggingV2::SourceLocation, decorator: Google::Apis::LoggingV2::SourceLocation::Representation
554
+
555
+ property :time, as: 'time'
556
+ end
557
+ end
558
+
559
+ class LogMetric
560
+ # @private
561
+ class Representation < Google::Apis::Core::JsonRepresentation
562
+ property :bucket_options, as: 'bucketOptions', class: Google::Apis::LoggingV2::BucketOptions, decorator: Google::Apis::LoggingV2::BucketOptions::Representation
563
+
564
+ property :create_time, as: 'createTime'
565
+ property :description, as: 'description'
566
+ property :filter, as: 'filter'
567
+ hash :label_extractors, as: 'labelExtractors'
568
+ property :metric_descriptor, as: 'metricDescriptor', class: Google::Apis::LoggingV2::MetricDescriptor, decorator: Google::Apis::LoggingV2::MetricDescriptor::Representation
569
+
570
+ property :name, as: 'name'
571
+ property :update_time, as: 'updateTime'
572
+ property :value_extractor, as: 'valueExtractor'
573
+ property :version, as: 'version'
574
+ end
575
+ end
576
+
577
+ class LogSink
578
+ # @private
579
+ class Representation < Google::Apis::Core::JsonRepresentation
580
+ property :bigquery_options, as: 'bigqueryOptions', class: Google::Apis::LoggingV2::BigQueryOptions, decorator: Google::Apis::LoggingV2::BigQueryOptions::Representation
581
+
582
+ property :create_time, as: 'createTime'
583
+ property :description, as: 'description'
584
+ property :destination, as: 'destination'
585
+ property :disabled, as: 'disabled'
586
+ collection :exclusions, as: 'exclusions', class: Google::Apis::LoggingV2::LogExclusion, decorator: Google::Apis::LoggingV2::LogExclusion::Representation
587
+
588
+ property :filter, as: 'filter'
589
+ property :include_children, as: 'includeChildren'
590
+ property :name, as: 'name'
591
+ property :output_version_format, as: 'outputVersionFormat'
592
+ property :update_time, as: 'updateTime'
593
+ property :writer_identity, as: 'writerIdentity'
594
+ end
595
+ end
596
+
597
+ class LogView
598
+ # @private
599
+ class Representation < Google::Apis::Core::JsonRepresentation
600
+ property :create_time, as: 'createTime'
601
+ property :description, as: 'description'
602
+ property :filter, as: 'filter'
603
+ property :name, as: 'name'
604
+ property :update_time, as: 'updateTime'
605
+ end
606
+ end
607
+
608
+ class MetricDescriptor
609
+ # @private
610
+ class Representation < Google::Apis::Core::JsonRepresentation
611
+ property :description, as: 'description'
612
+ property :display_name, as: 'displayName'
613
+ collection :labels, as: 'labels', class: Google::Apis::LoggingV2::LabelDescriptor, decorator: Google::Apis::LoggingV2::LabelDescriptor::Representation
614
+
615
+ property :launch_stage, as: 'launchStage'
616
+ property :metadata, as: 'metadata', class: Google::Apis::LoggingV2::MetricDescriptorMetadata, decorator: Google::Apis::LoggingV2::MetricDescriptorMetadata::Representation
617
+
618
+ property :metric_kind, as: 'metricKind'
619
+ collection :monitored_resource_types, as: 'monitoredResourceTypes'
620
+ property :name, as: 'name'
621
+ property :type, as: 'type'
622
+ property :unit, as: 'unit'
623
+ property :value_type, as: 'valueType'
624
+ end
625
+ end
626
+
627
+ class MetricDescriptorMetadata
628
+ # @private
629
+ class Representation < Google::Apis::Core::JsonRepresentation
630
+ property :ingest_delay, as: 'ingestDelay'
631
+ property :launch_stage, as: 'launchStage'
632
+ property :sample_period, as: 'samplePeriod'
633
+ end
634
+ end
635
+
636
+ class MonitoredResource
637
+ # @private
638
+ class Representation < Google::Apis::Core::JsonRepresentation
639
+ hash :labels, as: 'labels'
640
+ property :type, as: 'type'
641
+ end
642
+ end
643
+
644
+ class MonitoredResourceDescriptor
645
+ # @private
646
+ class Representation < Google::Apis::Core::JsonRepresentation
647
+ property :description, as: 'description'
648
+ property :display_name, as: 'displayName'
649
+ collection :labels, as: 'labels', class: Google::Apis::LoggingV2::LabelDescriptor, decorator: Google::Apis::LoggingV2::LabelDescriptor::Representation
650
+
651
+ property :launch_stage, as: 'launchStage'
652
+ property :name, as: 'name'
653
+ property :type, as: 'type'
654
+ end
655
+ end
656
+
657
+ class MonitoredResourceMetadata
658
+ # @private
659
+ class Representation < Google::Apis::Core::JsonRepresentation
660
+ hash :system_labels, as: 'systemLabels'
661
+ hash :user_labels, as: 'userLabels'
662
+ end
663
+ end
664
+
665
+ class RequestLog
666
+ # @private
667
+ class Representation < Google::Apis::Core::JsonRepresentation
668
+ property :app_engine_release, as: 'appEngineRelease'
669
+ property :app_id, as: 'appId'
670
+ property :cost, as: 'cost'
671
+ property :end_time, as: 'endTime'
672
+ property :finished, as: 'finished'
673
+ property :first, as: 'first'
674
+ property :host, as: 'host'
675
+ property :http_version, as: 'httpVersion'
676
+ property :instance_id, as: 'instanceId'
677
+ property :instance_index, as: 'instanceIndex'
678
+ property :ip, as: 'ip'
679
+ property :latency, as: 'latency'
680
+ collection :line, as: 'line', class: Google::Apis::LoggingV2::LogLine, decorator: Google::Apis::LoggingV2::LogLine::Representation
681
+
682
+ property :mega_cycles, :numeric_string => true, as: 'megaCycles'
683
+ property :method_prop, as: 'method'
684
+ property :module_id, as: 'moduleId'
685
+ property :nickname, as: 'nickname'
686
+ property :pending_time, as: 'pendingTime'
687
+ property :referrer, as: 'referrer'
688
+ property :request_id, as: 'requestId'
689
+ property :resource, as: 'resource'
690
+ property :response_size, :numeric_string => true, as: 'responseSize'
691
+ collection :source_reference, as: 'sourceReference', class: Google::Apis::LoggingV2::SourceReference, decorator: Google::Apis::LoggingV2::SourceReference::Representation
692
+
693
+ property :start_time, as: 'startTime'
694
+ property :status, as: 'status'
695
+ property :task_name, as: 'taskName'
696
+ property :task_queue_name, as: 'taskQueueName'
697
+ property :trace_id, as: 'traceId'
698
+ property :trace_sampled, as: 'traceSampled'
699
+ property :url_map_entry, as: 'urlMapEntry'
700
+ property :user_agent, as: 'userAgent'
701
+ property :version_id, as: 'versionId'
702
+ property :was_loading_request, as: 'wasLoadingRequest'
703
+ end
704
+ end
705
+
706
+ class SourceLocation
707
+ # @private
708
+ class Representation < Google::Apis::Core::JsonRepresentation
709
+ property :file, as: 'file'
710
+ property :function_name, as: 'functionName'
711
+ property :line, :numeric_string => true, as: 'line'
712
+ end
713
+ end
714
+
715
+ class SourceReference
716
+ # @private
717
+ class Representation < Google::Apis::Core::JsonRepresentation
718
+ property :repository, as: 'repository'
719
+ property :revision_id, as: 'revisionId'
720
+ end
721
+ end
722
+
723
+ class SuppressionInfo
724
+ # @private
725
+ class Representation < Google::Apis::Core::JsonRepresentation
726
+ property :reason, as: 'reason'
727
+ property :suppressed_count, as: 'suppressedCount'
728
+ end
729
+ end
730
+
731
+ class TailLogEntriesRequest
732
+ # @private
733
+ class Representation < Google::Apis::Core::JsonRepresentation
734
+ property :buffer_window, as: 'bufferWindow'
735
+ property :filter, as: 'filter'
736
+ collection :resource_names, as: 'resourceNames'
737
+ end
738
+ end
739
+
740
+ class TailLogEntriesResponse
741
+ # @private
742
+ class Representation < Google::Apis::Core::JsonRepresentation
743
+ collection :entries, as: 'entries', class: Google::Apis::LoggingV2::LogEntry, decorator: Google::Apis::LoggingV2::LogEntry::Representation
744
+
745
+ collection :suppression_info, as: 'suppressionInfo', class: Google::Apis::LoggingV2::SuppressionInfo, decorator: Google::Apis::LoggingV2::SuppressionInfo::Representation
746
+
747
+ end
748
+ end
749
+
750
+ class UndeleteBucketRequest
751
+ # @private
752
+ class Representation < Google::Apis::Core::JsonRepresentation
753
+ end
754
+ end
755
+
756
+ class WriteLogEntriesRequest
757
+ # @private
758
+ class Representation < Google::Apis::Core::JsonRepresentation
759
+ property :dry_run, as: 'dryRun'
760
+ collection :entries, as: 'entries', class: Google::Apis::LoggingV2::LogEntry, decorator: Google::Apis::LoggingV2::LogEntry::Representation
761
+
762
+ hash :labels, as: 'labels'
763
+ property :log_name, as: 'logName'
764
+ property :partial_success, as: 'partialSuccess'
765
+ property :resource, as: 'resource', class: Google::Apis::LoggingV2::MonitoredResource, decorator: Google::Apis::LoggingV2::MonitoredResource::Representation
766
+
767
+ end
768
+ end
769
+
770
+ class WriteLogEntriesResponse
771
+ # @private
772
+ class Representation < Google::Apis::Core::JsonRepresentation
773
+ end
774
+ end
775
+ end
776
+ end
777
+ end