-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Expand file tree
/
Copy pathlogging-integration.yaml
More file actions
514 lines (493 loc) · 34.3 KB
/
Copy pathlogging-integration.yaml
File metadata and controls
514 lines (493 loc) · 34.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
# Copyright 2023 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
description: Integrate Google Cloud Logging Handwritten code
# TODO(Fill in issue number below to add more context)
url: https://github.com/googleapis/gapic-generator-python/issues/123
replacements:
- paths: [
packages/google-cloud-logging/README.rst,
]
before: |
\.. _Set up Authentication.: https://googleapis.dev/python/google-api-core/latest/auth.html\n
Installation
after: |
.. _Set up Authentication.: https://googleapis.dev/python/google-api-core/latest/auth.html
For an interactive walkthrough on how to use this library in a python application, click the Guide Me button below:
|guide|
.. |guide| image:: https://raw.githubusercontent.com/googleapis/google-cloud-python/main/packages/google-cloud-logging/_static/guide-me.png
:target: https://console.cloud.google.com/?walkthrough_id=logging__logging-python
Installation
count: 1
- paths: [
"packages/google-cloud-logging/setup.py"
]
before: |
"google-auth >= 2.14.1, <3.0.0,!=2.24.0,!=2.25.0",
"grpcio >= 1.59.0, < 2.0.0",
after: |
"google-auth >= 2.14.1, <3.0.0,!=2.24.0,!=2.25.0",
"google-cloud-appengine-logging>=0.1.3, <2.0.0",
"google-cloud-audit-log >= 0.3.2, < 1.0.0",
"google-cloud-core >= 2.0.0, <3.0.0",
"grpc-google-iam-v1 >=0.14.2, <1.0.0",
"opentelemetry-api >= 1.16.0",
"grpcio >= 1.59.0, < 2.0.0",
count: 1
- paths: [
"packages/google-cloud-logging/testing/constraints-3.10.txt"
]
before: |
google-auth==2.14.1
grpcio==1.59.0
after: |
google-auth==2.14.1
google-cloud-appengine-logging==0.1.3
google-cloud-audit-log==0.3.2
google-cloud-core==2.0.0
grpc-google-iam-v1==0.14.2
opentelemetry-api==1.16.0
grpcio==1.59.0
count: 1
- paths: [
"packages/google-cloud-logging/samples/generated_samples/logging_v2_generated_config_service_v2_copy_log_entries_async.py",
"packages/google-cloud-logging/samples/generated_samples/logging_v2_generated_config_service_v2_copy_log_entries_sync.py",
"packages/google-cloud-logging/samples/generated_samples/logging_v2_generated_config_service_v2_create_bucket_async.py",
"packages/google-cloud-logging/samples/generated_samples/logging_v2_generated_config_service_v2_create_bucket_async_async.py",
"packages/google-cloud-logging/samples/generated_samples/logging_v2_generated_config_service_v2_create_bucket_async_sync.py",
"packages/google-cloud-logging/samples/generated_samples/logging_v2_generated_config_service_v2_create_bucket_sync.py",
"packages/google-cloud-logging/samples/generated_samples/logging_v2_generated_config_service_v2_create_exclusion_async.py",
"packages/google-cloud-logging/samples/generated_samples/logging_v2_generated_config_service_v2_create_exclusion_sync.py",
"packages/google-cloud-logging/samples/generated_samples/logging_v2_generated_config_service_v2_create_link_async.py",
"packages/google-cloud-logging/samples/generated_samples/logging_v2_generated_config_service_v2_create_link_sync.py",
"packages/google-cloud-logging/samples/generated_samples/logging_v2_generated_config_service_v2_create_sink_async.py",
"packages/google-cloud-logging/samples/generated_samples/logging_v2_generated_config_service_v2_create_sink_sync.py",
"packages/google-cloud-logging/samples/generated_samples/logging_v2_generated_config_service_v2_create_view_async.py",
"packages/google-cloud-logging/samples/generated_samples/logging_v2_generated_config_service_v2_create_view_sync.py",
"packages/google-cloud-logging/samples/generated_samples/logging_v2_generated_config_service_v2_delete_bucket_async.py",
"packages/google-cloud-logging/samples/generated_samples/logging_v2_generated_config_service_v2_delete_bucket_sync.py",
"packages/google-cloud-logging/samples/generated_samples/logging_v2_generated_config_service_v2_delete_exclusion_async.py",
"packages/google-cloud-logging/samples/generated_samples/logging_v2_generated_config_service_v2_delete_exclusion_sync.py",
"packages/google-cloud-logging/samples/generated_samples/logging_v2_generated_config_service_v2_delete_link_async.py",
"packages/google-cloud-logging/samples/generated_samples/logging_v2_generated_config_service_v2_delete_link_sync.py",
"packages/google-cloud-logging/samples/generated_samples/logging_v2_generated_config_service_v2_delete_sink_async.py",
"packages/google-cloud-logging/samples/generated_samples/logging_v2_generated_config_service_v2_delete_sink_sync.py",
"packages/google-cloud-logging/samples/generated_samples/logging_v2_generated_config_service_v2_delete_view_async.py",
"packages/google-cloud-logging/samples/generated_samples/logging_v2_generated_config_service_v2_delete_view_sync.py",
"packages/google-cloud-logging/samples/generated_samples/logging_v2_generated_config_service_v2_get_bucket_async.py",
"packages/google-cloud-logging/samples/generated_samples/logging_v2_generated_config_service_v2_get_bucket_sync.py",
"packages/google-cloud-logging/samples/generated_samples/logging_v2_generated_config_service_v2_get_cmek_settings_async.py",
"packages/google-cloud-logging/samples/generated_samples/logging_v2_generated_config_service_v2_get_cmek_settings_sync.py",
"packages/google-cloud-logging/samples/generated_samples/logging_v2_generated_config_service_v2_get_exclusion_async.py",
"packages/google-cloud-logging/samples/generated_samples/logging_v2_generated_config_service_v2_get_exclusion_sync.py",
"packages/google-cloud-logging/samples/generated_samples/logging_v2_generated_config_service_v2_get_link_async.py",
"packages/google-cloud-logging/samples/generated_samples/logging_v2_generated_config_service_v2_get_link_sync.py",
"packages/google-cloud-logging/samples/generated_samples/logging_v2_generated_config_service_v2_get_settings_async.py",
"packages/google-cloud-logging/samples/generated_samples/logging_v2_generated_config_service_v2_get_settings_sync.py",
"packages/google-cloud-logging/samples/generated_samples/logging_v2_generated_config_service_v2_get_sink_async.py",
"packages/google-cloud-logging/samples/generated_samples/logging_v2_generated_config_service_v2_get_sink_sync.py",
"packages/google-cloud-logging/samples/generated_samples/logging_v2_generated_config_service_v2_get_view_async.py",
"packages/google-cloud-logging/samples/generated_samples/logging_v2_generated_config_service_v2_get_view_sync.py",
"packages/google-cloud-logging/samples/generated_samples/logging_v2_generated_config_service_v2_list_buckets_async.py",
"packages/google-cloud-logging/samples/generated_samples/logging_v2_generated_config_service_v2_list_buckets_sync.py",
"packages/google-cloud-logging/samples/generated_samples/logging_v2_generated_config_service_v2_list_exclusions_async.py",
"packages/google-cloud-logging/samples/generated_samples/logging_v2_generated_config_service_v2_list_exclusions_sync.py",
"packages/google-cloud-logging/samples/generated_samples/logging_v2_generated_config_service_v2_list_links_async.py",
"packages/google-cloud-logging/samples/generated_samples/logging_v2_generated_config_service_v2_list_links_sync.py",
"packages/google-cloud-logging/samples/generated_samples/logging_v2_generated_config_service_v2_list_sinks_async.py",
"packages/google-cloud-logging/samples/generated_samples/logging_v2_generated_config_service_v2_list_sinks_sync.py",
"packages/google-cloud-logging/samples/generated_samples/logging_v2_generated_config_service_v2_list_views_async.py",
"packages/google-cloud-logging/samples/generated_samples/logging_v2_generated_config_service_v2_list_views_sync.py",
"packages/google-cloud-logging/samples/generated_samples/logging_v2_generated_config_service_v2_undelete_bucket_async.py",
"packages/google-cloud-logging/samples/generated_samples/logging_v2_generated_config_service_v2_undelete_bucket_sync.py",
"packages/google-cloud-logging/samples/generated_samples/logging_v2_generated_config_service_v2_update_bucket_async.py",
"packages/google-cloud-logging/samples/generated_samples/logging_v2_generated_config_service_v2_update_bucket_async_async.py",
"packages/google-cloud-logging/samples/generated_samples/logging_v2_generated_config_service_v2_update_bucket_async_sync.py",
"packages/google-cloud-logging/samples/generated_samples/logging_v2_generated_config_service_v2_update_bucket_sync.py",
"packages/google-cloud-logging/samples/generated_samples/logging_v2_generated_config_service_v2_update_cmek_settings_async.py",
"packages/google-cloud-logging/samples/generated_samples/logging_v2_generated_config_service_v2_update_cmek_settings_sync.py",
"packages/google-cloud-logging/samples/generated_samples/logging_v2_generated_config_service_v2_update_exclusion_async.py",
"packages/google-cloud-logging/samples/generated_samples/logging_v2_generated_config_service_v2_update_exclusion_sync.py",
"packages/google-cloud-logging/samples/generated_samples/logging_v2_generated_config_service_v2_update_settings_async.py",
"packages/google-cloud-logging/samples/generated_samples/logging_v2_generated_config_service_v2_update_settings_sync.py",
"packages/google-cloud-logging/samples/generated_samples/logging_v2_generated_config_service_v2_update_sink_async.py",
"packages/google-cloud-logging/samples/generated_samples/logging_v2_generated_config_service_v2_update_sink_sync.py",
"packages/google-cloud-logging/samples/generated_samples/logging_v2_generated_config_service_v2_update_view_async.py",
"packages/google-cloud-logging/samples/generated_samples/logging_v2_generated_config_service_v2_update_view_sync.py",
]
before: "# Create a client\n client = logging_v2"
after: "# Create a client.\n client = logging_v2.services.config_service_v2"
count: 64
- paths: [
"packages/google-cloud-logging/samples/generated_samples/logging_v2_generated_logging_service_v2_delete_log_async.py",
"packages/google-cloud-logging/samples/generated_samples/logging_v2_generated_logging_service_v2_delete_log_sync.py",
"packages/google-cloud-logging/samples/generated_samples/logging_v2_generated_logging_service_v2_list_log_entries_async.py",
"packages/google-cloud-logging/samples/generated_samples/logging_v2_generated_logging_service_v2_list_log_entries_sync.py",
"packages/google-cloud-logging/samples/generated_samples/logging_v2_generated_logging_service_v2_list_logs_async.py",
"packages/google-cloud-logging/samples/generated_samples/logging_v2_generated_logging_service_v2_list_logs_sync.py",
"packages/google-cloud-logging/samples/generated_samples/logging_v2_generated_logging_service_v2_list_monitored_resource_descriptors_async.py",
"packages/google-cloud-logging/samples/generated_samples/logging_v2_generated_logging_service_v2_list_monitored_resource_descriptors_sync.py",
"packages/google-cloud-logging/samples/generated_samples/logging_v2_generated_logging_service_v2_tail_log_entries_async.py",
"packages/google-cloud-logging/samples/generated_samples/logging_v2_generated_logging_service_v2_tail_log_entries_sync.py",
"packages/google-cloud-logging/samples/generated_samples/logging_v2_generated_logging_service_v2_write_log_entries_async.py",
"packages/google-cloud-logging/samples/generated_samples/logging_v2_generated_logging_service_v2_write_log_entries_sync.py",
]
before: "# Create a client\n client = logging_v2"
after: "# Create a client.\n client = logging_v2.services.logging_service_v2"
count: 12
- paths: [
"packages/google-cloud-logging/samples/generated_samples/logging_v2_generated_metrics_service_v2_create_log_metric_async.py",
"packages/google-cloud-logging/samples/generated_samples/logging_v2_generated_metrics_service_v2_create_log_metric_sync.py",
"packages/google-cloud-logging/samples/generated_samples/logging_v2_generated_metrics_service_v2_delete_log_metric_async.py",
"packages/google-cloud-logging/samples/generated_samples/logging_v2_generated_metrics_service_v2_delete_log_metric_sync.py",
"packages/google-cloud-logging/samples/generated_samples/logging_v2_generated_metrics_service_v2_get_log_metric_async.py",
"packages/google-cloud-logging/samples/generated_samples/logging_v2_generated_metrics_service_v2_get_log_metric_sync.py",
"packages/google-cloud-logging/samples/generated_samples/logging_v2_generated_metrics_service_v2_list_log_metrics_async.py",
"packages/google-cloud-logging/samples/generated_samples/logging_v2_generated_metrics_service_v2_list_log_metrics_sync.py",
"packages/google-cloud-logging/samples/generated_samples/logging_v2_generated_metrics_service_v2_update_log_metric_async.py",
"packages/google-cloud-logging/samples/generated_samples/logging_v2_generated_metrics_service_v2_update_log_metric_sync.py",
]
before: "# Create a client\n client = logging_v2"
after: "# Create a client.\n client = logging_v2.services.metrics_service_v2"
count: 10
- paths: [
"packages/google-cloud-logging/samples/generated_samples/logging_v2_generated_config_service_v2_copy_log_entries_async.py",
"packages/google-cloud-logging/samples/generated_samples/logging_v2_generated_config_service_v2_copy_log_entries_sync.py",
"packages/google-cloud-logging/samples/generated_samples/logging_v2_generated_config_service_v2_create_bucket_async.py",
"packages/google-cloud-logging/samples/generated_samples/logging_v2_generated_config_service_v2_create_bucket_async_async.py",
"packages/google-cloud-logging/samples/generated_samples/logging_v2_generated_config_service_v2_create_bucket_async_sync.py",
"packages/google-cloud-logging/samples/generated_samples/logging_v2_generated_config_service_v2_create_bucket_sync.py",
"packages/google-cloud-logging/samples/generated_samples/logging_v2_generated_config_service_v2_create_exclusion_async.py",
"packages/google-cloud-logging/samples/generated_samples/logging_v2_generated_config_service_v2_create_exclusion_sync.py",
"packages/google-cloud-logging/samples/generated_samples/logging_v2_generated_config_service_v2_create_link_async.py",
"packages/google-cloud-logging/samples/generated_samples/logging_v2_generated_config_service_v2_create_link_sync.py",
"packages/google-cloud-logging/samples/generated_samples/logging_v2_generated_config_service_v2_create_sink_async.py",
"packages/google-cloud-logging/samples/generated_samples/logging_v2_generated_config_service_v2_create_sink_sync.py",
"packages/google-cloud-logging/samples/generated_samples/logging_v2_generated_config_service_v2_create_view_async.py",
"packages/google-cloud-logging/samples/generated_samples/logging_v2_generated_config_service_v2_create_view_sync.py",
"packages/google-cloud-logging/samples/generated_samples/logging_v2_generated_config_service_v2_delete_bucket_async.py",
"packages/google-cloud-logging/samples/generated_samples/logging_v2_generated_config_service_v2_delete_bucket_sync.py",
"packages/google-cloud-logging/samples/generated_samples/logging_v2_generated_config_service_v2_delete_exclusion_async.py",
"packages/google-cloud-logging/samples/generated_samples/logging_v2_generated_config_service_v2_delete_exclusion_sync.py",
"packages/google-cloud-logging/samples/generated_samples/logging_v2_generated_config_service_v2_delete_link_async.py",
"packages/google-cloud-logging/samples/generated_samples/logging_v2_generated_config_service_v2_delete_link_sync.py",
"packages/google-cloud-logging/samples/generated_samples/logging_v2_generated_config_service_v2_delete_sink_async.py",
"packages/google-cloud-logging/samples/generated_samples/logging_v2_generated_config_service_v2_delete_sink_sync.py",
"packages/google-cloud-logging/samples/generated_samples/logging_v2_generated_config_service_v2_delete_view_async.py",
"packages/google-cloud-logging/samples/generated_samples/logging_v2_generated_config_service_v2_delete_view_sync.py",
"packages/google-cloud-logging/samples/generated_samples/logging_v2_generated_config_service_v2_get_bucket_async.py",
"packages/google-cloud-logging/samples/generated_samples/logging_v2_generated_config_service_v2_get_bucket_sync.py",
"packages/google-cloud-logging/samples/generated_samples/logging_v2_generated_config_service_v2_get_cmek_settings_async.py",
"packages/google-cloud-logging/samples/generated_samples/logging_v2_generated_config_service_v2_get_cmek_settings_sync.py",
"packages/google-cloud-logging/samples/generated_samples/logging_v2_generated_config_service_v2_get_exclusion_async.py",
"packages/google-cloud-logging/samples/generated_samples/logging_v2_generated_config_service_v2_get_exclusion_sync.py",
"packages/google-cloud-logging/samples/generated_samples/logging_v2_generated_config_service_v2_get_link_async.py",
"packages/google-cloud-logging/samples/generated_samples/logging_v2_generated_config_service_v2_get_link_sync.py",
"packages/google-cloud-logging/samples/generated_samples/logging_v2_generated_config_service_v2_get_settings_async.py",
"packages/google-cloud-logging/samples/generated_samples/logging_v2_generated_config_service_v2_get_settings_sync.py",
"packages/google-cloud-logging/samples/generated_samples/logging_v2_generated_config_service_v2_get_sink_async.py",
"packages/google-cloud-logging/samples/generated_samples/logging_v2_generated_config_service_v2_get_sink_sync.py",
"packages/google-cloud-logging/samples/generated_samples/logging_v2_generated_config_service_v2_get_view_async.py",
"packages/google-cloud-logging/samples/generated_samples/logging_v2_generated_config_service_v2_get_view_sync.py",
"packages/google-cloud-logging/samples/generated_samples/logging_v2_generated_config_service_v2_list_buckets_async.py",
"packages/google-cloud-logging/samples/generated_samples/logging_v2_generated_config_service_v2_list_buckets_sync.py",
"packages/google-cloud-logging/samples/generated_samples/logging_v2_generated_config_service_v2_list_exclusions_async.py",
"packages/google-cloud-logging/samples/generated_samples/logging_v2_generated_config_service_v2_list_exclusions_sync.py",
"packages/google-cloud-logging/samples/generated_samples/logging_v2_generated_config_service_v2_list_links_async.py",
"packages/google-cloud-logging/samples/generated_samples/logging_v2_generated_config_service_v2_list_links_sync.py",
"packages/google-cloud-logging/samples/generated_samples/logging_v2_generated_config_service_v2_list_sinks_async.py",
"packages/google-cloud-logging/samples/generated_samples/logging_v2_generated_config_service_v2_list_sinks_sync.py",
"packages/google-cloud-logging/samples/generated_samples/logging_v2_generated_config_service_v2_list_views_async.py",
"packages/google-cloud-logging/samples/generated_samples/logging_v2_generated_config_service_v2_list_views_sync.py",
"packages/google-cloud-logging/samples/generated_samples/logging_v2_generated_config_service_v2_undelete_bucket_async.py",
"packages/google-cloud-logging/samples/generated_samples/logging_v2_generated_config_service_v2_undelete_bucket_sync.py",
"packages/google-cloud-logging/samples/generated_samples/logging_v2_generated_config_service_v2_update_bucket_async.py",
"packages/google-cloud-logging/samples/generated_samples/logging_v2_generated_config_service_v2_update_bucket_async_async.py",
"packages/google-cloud-logging/samples/generated_samples/logging_v2_generated_config_service_v2_update_bucket_async_sync.py",
"packages/google-cloud-logging/samples/generated_samples/logging_v2_generated_config_service_v2_update_bucket_sync.py",
"packages/google-cloud-logging/samples/generated_samples/logging_v2_generated_config_service_v2_update_cmek_settings_async.py",
"packages/google-cloud-logging/samples/generated_samples/logging_v2_generated_config_service_v2_update_cmek_settings_sync.py",
"packages/google-cloud-logging/samples/generated_samples/logging_v2_generated_config_service_v2_update_exclusion_async.py",
"packages/google-cloud-logging/samples/generated_samples/logging_v2_generated_config_service_v2_update_exclusion_sync.py",
"packages/google-cloud-logging/samples/generated_samples/logging_v2_generated_config_service_v2_update_settings_async.py",
"packages/google-cloud-logging/samples/generated_samples/logging_v2_generated_config_service_v2_update_settings_sync.py",
"packages/google-cloud-logging/samples/generated_samples/logging_v2_generated_config_service_v2_update_sink_async.py",
"packages/google-cloud-logging/samples/generated_samples/logging_v2_generated_config_service_v2_update_sink_sync.py",
"packages/google-cloud-logging/samples/generated_samples/logging_v2_generated_config_service_v2_update_view_async.py",
"packages/google-cloud-logging/samples/generated_samples/logging_v2_generated_config_service_v2_update_view_sync.py",
"packages/google-cloud-logging/samples/generated_samples/logging_v2_generated_logging_service_v2_delete_log_async.py",
"packages/google-cloud-logging/samples/generated_samples/logging_v2_generated_logging_service_v2_delete_log_sync.py",
"packages/google-cloud-logging/samples/generated_samples/logging_v2_generated_logging_service_v2_list_log_entries_async.py",
"packages/google-cloud-logging/samples/generated_samples/logging_v2_generated_logging_service_v2_list_log_entries_sync.py",
"packages/google-cloud-logging/samples/generated_samples/logging_v2_generated_logging_service_v2_list_logs_async.py",
"packages/google-cloud-logging/samples/generated_samples/logging_v2_generated_logging_service_v2_list_logs_sync.py",
"packages/google-cloud-logging/samples/generated_samples/logging_v2_generated_logging_service_v2_list_monitored_resource_descriptors_async.py",
"packages/google-cloud-logging/samples/generated_samples/logging_v2_generated_logging_service_v2_list_monitored_resource_descriptors_sync.py",
"packages/google-cloud-logging/samples/generated_samples/logging_v2_generated_logging_service_v2_tail_log_entries_async.py",
"packages/google-cloud-logging/samples/generated_samples/logging_v2_generated_logging_service_v2_tail_log_entries_sync.py",
"packages/google-cloud-logging/samples/generated_samples/logging_v2_generated_logging_service_v2_write_log_entries_async.py",
"packages/google-cloud-logging/samples/generated_samples/logging_v2_generated_logging_service_v2_write_log_entries_sync.py",
"packages/google-cloud-logging/samples/generated_samples/logging_v2_generated_metrics_service_v2_create_log_metric_async.py",
"packages/google-cloud-logging/samples/generated_samples/logging_v2_generated_metrics_service_v2_create_log_metric_sync.py",
"packages/google-cloud-logging/samples/generated_samples/logging_v2_generated_metrics_service_v2_delete_log_metric_async.py",
"packages/google-cloud-logging/samples/generated_samples/logging_v2_generated_metrics_service_v2_delete_log_metric_sync.py",
"packages/google-cloud-logging/samples/generated_samples/logging_v2_generated_metrics_service_v2_get_log_metric_async.py",
"packages/google-cloud-logging/samples/generated_samples/logging_v2_generated_metrics_service_v2_get_log_metric_sync.py",
"packages/google-cloud-logging/samples/generated_samples/logging_v2_generated_metrics_service_v2_list_log_metrics_async.py",
"packages/google-cloud-logging/samples/generated_samples/logging_v2_generated_metrics_service_v2_list_log_metrics_sync.py",
"packages/google-cloud-logging/samples/generated_samples/logging_v2_generated_metrics_service_v2_update_log_metric_async.py",
"packages/google-cloud-logging/samples/generated_samples/logging_v2_generated_metrics_service_v2_update_log_metric_sync.py",
]
before: '# Initialize request argument\(s\)\n request = logging_v2'
after: '# Initialize request argument(s).\n request = logging_v2.types'
count: 72
- paths: [
"packages/google-cloud-logging/samples/generated_samples/logging_v2_generated_config_service_v2_create_exclusion_async.py",
"packages/google-cloud-logging/samples/generated_samples/logging_v2_generated_config_service_v2_create_exclusion_sync.py",
"packages/google-cloud-logging/samples/generated_samples/logging_v2_generated_config_service_v2_create_sink_async.py",
"packages/google-cloud-logging/samples/generated_samples/logging_v2_generated_config_service_v2_create_sink_sync.py",
"packages/google-cloud-logging/samples/generated_samples/logging_v2_generated_config_service_v2_update_exclusion_async.py",
"packages/google-cloud-logging/samples/generated_samples/logging_v2_generated_config_service_v2_update_exclusion_sync.py",
"packages/google-cloud-logging/samples/generated_samples/logging_v2_generated_config_service_v2_update_sink_async.py",
"packages/google-cloud-logging/samples/generated_samples/logging_v2_generated_config_service_v2_update_sink_sync.py",
"packages/google-cloud-logging/samples/generated_samples/logging_v2_generated_logging_service_v2_write_log_entries_async.py",
"packages/google-cloud-logging/samples/generated_samples/logging_v2_generated_logging_service_v2_write_log_entries_sync.py",
"packages/google-cloud-logging/samples/generated_samples/logging_v2_generated_metrics_service_v2_create_log_metric_async.py",
"packages/google-cloud-logging/samples/generated_samples/logging_v2_generated_metrics_service_v2_create_log_metric_sync.py",
"packages/google-cloud-logging/samples/generated_samples/logging_v2_generated_metrics_service_v2_update_log_metric_async.py",
"packages/google-cloud-logging/samples/generated_samples/logging_v2_generated_metrics_service_v2_update_log_metric_sync.py",
]
before: '\n\n request = logging_v2'
after: '\n\n # Initialize request argument(s).\n request = logging_v2.types'
count: 14
- paths: [
"packages/google-cloud-logging/samples/generated_samples/logging_v2_generated_config_service_v2_create_exclusion_async.py",
"packages/google-cloud-logging/samples/generated_samples/logging_v2_generated_config_service_v2_create_exclusion_sync.py",
"packages/google-cloud-logging/samples/generated_samples/logging_v2_generated_config_service_v2_create_sink_async.py",
"packages/google-cloud-logging/samples/generated_samples/logging_v2_generated_config_service_v2_create_sink_sync.py",
"packages/google-cloud-logging/samples/generated_samples/logging_v2_generated_config_service_v2_update_exclusion_async.py",
"packages/google-cloud-logging/samples/generated_samples/logging_v2_generated_config_service_v2_update_exclusion_sync.py",
"packages/google-cloud-logging/samples/generated_samples/logging_v2_generated_config_service_v2_update_sink_async.py",
"packages/google-cloud-logging/samples/generated_samples/logging_v2_generated_config_service_v2_update_sink_sync.py",
"packages/google-cloud-logging/samples/generated_samples/logging_v2_generated_logging_service_v2_write_log_entries_async.py",
"packages/google-cloud-logging/samples/generated_samples/logging_v2_generated_logging_service_v2_write_log_entries_sync.py",
"packages/google-cloud-logging/samples/generated_samples/logging_v2_generated_metrics_service_v2_create_log_metric_async.py",
"packages/google-cloud-logging/samples/generated_samples/logging_v2_generated_metrics_service_v2_create_log_metric_sync.py",
"packages/google-cloud-logging/samples/generated_samples/logging_v2_generated_metrics_service_v2_update_log_metric_async.py",
"packages/google-cloud-logging/samples/generated_samples/logging_v2_generated_metrics_service_v2_update_log_metric_sync.py",
]
before: 'logging_v2.Log'
after: 'logging_v2.types.Log'
count: 14
- paths: [
"packages/google-cloud-logging/samples/generated_samples/logging_v2_generated_logging_service_v2_tail_log_entries_async.py",
"packages/google-cloud-logging/samples/generated_samples/logging_v2_generated_logging_service_v2_tail_log_entries_sync.py",
]
before: 'logging_v2.Tail'
after: 'logging_v2.types.Tail'
count: 2
- paths: [
"packages/google-cloud-logging/docs/conf.py",
]
before: |
exclude_patterns = \[
\ "_build",
after: |
exclude_patterns = [
"logging_v2/**",
"multiprocessing.rst",
"_build",
count: 1
- paths: [
"packages/google-cloud-logging/docs/index.rst",
]
before: |
.. include:: multiprocessing.rst\n\n
API Reference
-------------
.. toctree::
\ :maxdepth: 2\n
\ logging_v2/services_
\ logging_v2/types_
after: |
Usage Guide
-------------------
.. toctree::
:maxdepth: 2
usage
Documentation
-------------------
.. toctree::
:maxdepth: 3
client
logger
entries
metric
resource
sink
handlers
transport
Migration Guides
----------------
See the guide below for instructions on migrating between major releases of this library.
.. toctree::
:maxdepth: 2
UPGRADING
count: 1
- paths: [
"packages/google-cloud-logging/google/cloud/logging/__init__.py",
]
before: |
from google.cloud.logging import gapic_version as package_version
[\s\S]*?"UpdateLogMetricRequest",\n\)
after: |
from google.cloud.logging_v2 import ASCENDING, DESCENDING, __version__, handlers, types
from google.cloud.logging_v2.client import Client
from google.cloud.logging_v2.entries import (
LogEntry,
ProtobufEntry,
StructEntry,
TextEntry,
logger_name_from_path,
)
from google.cloud.logging_v2.logger import Batch, Logger
from google.cloud.logging_v2.metric import Metric
from google.cloud.logging_v2.resource import Resource
from google.cloud.logging_v2.sink import Sink
__all__ = (
"__version__",
"ASCENDING",
"Batch",
"Client",
"DESCENDING",
"handlers",
"logger_name_from_path",
"Logger",
"LogEntry",
"Metric",
"ProtobufEntry",
"Resource",
"Sink",
"StructEntry",
"TextEntry",
"types",
)
count: 1
- paths: [
"packages/google-cloud-logging/google/cloud/logging_v2/__init__.py",
]
before: |
import sys\n
import google.api_core as api_core
[\s\S]*?"WriteLogEntriesResponse",\n\)
after: |
from __future__ import absolute_import
from google.cloud.logging_v2 import gapic_version as package_version
__version__ = package_version.__version__
from google.cloud.logging_v2 import handlers, types
from google.cloud.logging_v2.client import Client
from google.cloud.logging_v2.entries import (
LogEntry,
ProtobufEntry,
StructEntry,
TextEntry,
logger_name_from_path,
)
from google.cloud.logging_v2.logger import Batch, Logger
from google.cloud.logging_v2.metric import Metric
from google.cloud.logging_v2.resource import Resource
from google.cloud.logging_v2.sink import Sink
ASCENDING = "timestamp asc"
"""Query string to order by ascending timestamps."""
DESCENDING = "timestamp desc"
"""Query string to order by descending timestamps."""
_instrumentation_emitted = False
"""Flag for whether instrumentation info has been emitted"""
__all__ = (
"__version__",
"ASCENDING",
"Batch",
"Client",
"DESCENDING",
"handlers",
"logger_name_from_path",
"Logger",
"LogEntry",
"Metric",
"ProtobufEntry",
"Resource",
"Sink",
"StructEntry",
"TextEntry",
"types",
)
count: 1
- paths: [
packages/google-cloud-logging/noxfile.py
]
before: |
UNIT_TEST_EXTERNAL_DEPENDENCIES: List\[str\] = \[\]
after: |
UNIT_TEST_EXTERNAL_DEPENDENCIES: List[str] = [
"flask",
"webob",
"django",
]
count: 1
- paths: [
packages/google-cloud-logging/noxfile.py
]
before: |
CURRENT_DIRECTORY = pathlib.Path\(__file__\).parent.absolute\(\)
after: |
CURRENT_DIRECTORY = pathlib.Path(__file__).parent.absolute()
# Path to the centralized mypy configuration file at the repository root.
# Search upwards to support running nox from both monorepo packages and integration test goldens.
MYPY_CONFIG_FILE = next(
(
str(p / "mypy.ini")
for p in CURRENT_DIRECTORY.parents
if (p / "mypy.ini").exists()
),
str(CURRENT_DIRECTORY.parent.parent / "mypy.ini"),
)
count: 1
- paths: [
packages/google-cloud-logging/noxfile.py
]
before: |
"""Run the type checker."""
[\s\S]*?"google",
\ "--check-untyped-defs",
\ \*session.posargs,
\ \)
after: |
"""Run the type checker."""
# TODO(https://github.com/googleapis/google-cloud-python/issues/13362):
# Enable mypy once this repo has been updated for mypy evaluation.
session.skip("Skip mypy since this library is not yet updated for mypy evaluation")
session.install("-e", ".")
session.install(
"mypy",
"types-setuptools",
"types-protobuf",
"types-requests",
)
session.run(
"mypy",
f"--config-file={MYPY_CONFIG_FILE}",
"-p",
"google",
*session.posargs,
)
count: 1