google-cloud-logging-v2 0.13.0 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bda3df1dd15e5a1ffb99a2483644aa6a33e8bfc85233d2d9d97106e050ede2c3
4
- data.tar.gz: 5d9fe1162e1565b2caf06783cfc301468360d1654c4724ae00b1ba8db5a5046d
3
+ metadata.gz: e052fd8574f713a149f24ab8ba67a7b7c81edb4bad5df4461fd5bbb9f7f94fc2
4
+ data.tar.gz: 1b1eed97095b19e43d1521f421b5678a86c4bb3d8d0d36d6d2c57051e2caf908
5
5
  SHA512:
6
- metadata.gz: 9df729727028e1fc7ff0b249cef144f8e0ae9a50f6552c399b2710ac2ec4829e08b749d82a3930306ddabd6bb446a22b5906fd0c2d4235f8f92d14d4b036fa03
7
- data.tar.gz: b79ebc28339be33c6acdb5c2d44b678b93a01804dfe824301d3fa5aee0afef16962169b6c7b7e2bfd8d1b1b3d6ad78595fc24d94550040f03741abb6f3b721ca
6
+ metadata.gz: 652872d3eb4955d523a28dbb5b284d773bb4a4fdb4010dede05631cccf305bb63cb2f89b0f2bf4528bd7d81c96caef9ab4b6670ab639a0648af36f33187a2edd
7
+ data.tar.gz: 3edd8798f2ccc29eea8c14e957ec251f6172f9ebcde668a08a5e4e8c610fd6727c99d86162ce1119335aac18480f4f638f899a867af8ca4733a7f9894f30f603
@@ -30,6 +30,9 @@ module Google
30
30
  # Service for configuring sinks used to route log entries.
31
31
  #
32
32
  class Client
33
+ # @private
34
+ API_VERSION = ""
35
+
33
36
  # @private
34
37
  DEFAULT_ENDPOINT_TEMPLATE = "logging.$UNIVERSE_DOMAIN$"
35
38
 
@@ -292,10 +295,11 @@ module Google
292
295
  # Customize the options with defaults
293
296
  metadata = @config.rpcs.list_buckets.metadata.to_h
294
297
 
295
- # Set x-goog-api-client and x-goog-user-project headers
298
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
296
299
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
297
300
  lib_name: @config.lib_name, lib_version: @config.lib_version,
298
301
  gapic_version: ::Google::Cloud::Logging::V2::VERSION
302
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
299
303
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
300
304
 
301
305
  header_params = {}
@@ -387,10 +391,11 @@ module Google
387
391
  # Customize the options with defaults
388
392
  metadata = @config.rpcs.get_bucket.metadata.to_h
389
393
 
390
- # Set x-goog-api-client and x-goog-user-project headers
394
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
391
395
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
392
396
  lib_name: @config.lib_name, lib_version: @config.lib_version,
393
397
  gapic_version: ::Google::Cloud::Logging::V2::VERSION
398
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
394
399
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
395
400
 
396
401
  header_params = {}
@@ -495,10 +500,11 @@ module Google
495
500
  # Customize the options with defaults
496
501
  metadata = @config.rpcs.create_bucket_async.metadata.to_h
497
502
 
498
- # Set x-goog-api-client and x-goog-user-project headers
503
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
499
504
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
500
505
  lib_name: @config.lib_name, lib_version: @config.lib_version,
501
506
  gapic_version: ::Google::Cloud::Logging::V2::VERSION
507
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
502
508
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
503
509
 
504
510
  header_params = {}
@@ -613,10 +619,11 @@ module Google
613
619
  # Customize the options with defaults
614
620
  metadata = @config.rpcs.update_bucket_async.metadata.to_h
615
621
 
616
- # Set x-goog-api-client and x-goog-user-project headers
622
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
617
623
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
618
624
  lib_name: @config.lib_name, lib_version: @config.lib_version,
619
625
  gapic_version: ::Google::Cloud::Logging::V2::VERSION
626
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
620
627
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
621
628
 
622
629
  header_params = {}
@@ -714,10 +721,11 @@ module Google
714
721
  # Customize the options with defaults
715
722
  metadata = @config.rpcs.create_bucket.metadata.to_h
716
723
 
717
- # Set x-goog-api-client and x-goog-user-project headers
724
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
718
725
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
719
726
  lib_name: @config.lib_name, lib_version: @config.lib_version,
720
727
  gapic_version: ::Google::Cloud::Logging::V2::VERSION
728
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
721
729
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
722
730
 
723
731
  header_params = {}
@@ -824,10 +832,11 @@ module Google
824
832
  # Customize the options with defaults
825
833
  metadata = @config.rpcs.update_bucket.metadata.to_h
826
834
 
827
- # Set x-goog-api-client and x-goog-user-project headers
835
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
828
836
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
829
837
  lib_name: @config.lib_name, lib_version: @config.lib_version,
830
838
  gapic_version: ::Google::Cloud::Logging::V2::VERSION
839
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
831
840
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
832
841
 
833
842
  header_params = {}
@@ -922,10 +931,11 @@ module Google
922
931
  # Customize the options with defaults
923
932
  metadata = @config.rpcs.delete_bucket.metadata.to_h
924
933
 
925
- # Set x-goog-api-client and x-goog-user-project headers
934
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
926
935
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
927
936
  lib_name: @config.lib_name, lib_version: @config.lib_version,
928
937
  gapic_version: ::Google::Cloud::Logging::V2::VERSION
938
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
929
939
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
930
940
 
931
941
  header_params = {}
@@ -1017,10 +1027,11 @@ module Google
1017
1027
  # Customize the options with defaults
1018
1028
  metadata = @config.rpcs.undelete_bucket.metadata.to_h
1019
1029
 
1020
- # Set x-goog-api-client and x-goog-user-project headers
1030
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1021
1031
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1022
1032
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1023
1033
  gapic_version: ::Google::Cloud::Logging::V2::VERSION
1034
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1024
1035
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1025
1036
 
1026
1037
  header_params = {}
@@ -1118,10 +1129,11 @@ module Google
1118
1129
  # Customize the options with defaults
1119
1130
  metadata = @config.rpcs.list_views.metadata.to_h
1120
1131
 
1121
- # Set x-goog-api-client and x-goog-user-project headers
1132
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1122
1133
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1123
1134
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1124
1135
  gapic_version: ::Google::Cloud::Logging::V2::VERSION
1136
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1125
1137
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1126
1138
 
1127
1139
  header_params = {}
@@ -1210,10 +1222,11 @@ module Google
1210
1222
  # Customize the options with defaults
1211
1223
  metadata = @config.rpcs.get_view.metadata.to_h
1212
1224
 
1213
- # Set x-goog-api-client and x-goog-user-project headers
1225
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1214
1226
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1215
1227
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1216
1228
  gapic_version: ::Google::Cloud::Logging::V2::VERSION
1229
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1217
1230
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1218
1231
 
1219
1232
  header_params = {}
@@ -1308,10 +1321,11 @@ module Google
1308
1321
  # Customize the options with defaults
1309
1322
  metadata = @config.rpcs.create_view.metadata.to_h
1310
1323
 
1311
- # Set x-goog-api-client and x-goog-user-project headers
1324
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1312
1325
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1313
1326
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1314
1327
  gapic_version: ::Google::Cloud::Logging::V2::VERSION
1328
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1315
1329
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1316
1330
 
1317
1331
  header_params = {}
@@ -1414,10 +1428,11 @@ module Google
1414
1428
  # Customize the options with defaults
1415
1429
  metadata = @config.rpcs.update_view.metadata.to_h
1416
1430
 
1417
- # Set x-goog-api-client and x-goog-user-project headers
1431
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1418
1432
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1419
1433
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1420
1434
  gapic_version: ::Google::Cloud::Logging::V2::VERSION
1435
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1421
1436
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1422
1437
 
1423
1438
  header_params = {}
@@ -1508,10 +1523,11 @@ module Google
1508
1523
  # Customize the options with defaults
1509
1524
  metadata = @config.rpcs.delete_view.metadata.to_h
1510
1525
 
1511
- # Set x-goog-api-client and x-goog-user-project headers
1526
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1512
1527
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1513
1528
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1514
1529
  gapic_version: ::Google::Cloud::Logging::V2::VERSION
1530
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1515
1531
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1516
1532
 
1517
1533
  header_params = {}
@@ -1611,10 +1627,11 @@ module Google
1611
1627
  # Customize the options with defaults
1612
1628
  metadata = @config.rpcs.list_sinks.metadata.to_h
1613
1629
 
1614
- # Set x-goog-api-client and x-goog-user-project headers
1630
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1615
1631
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1616
1632
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1617
1633
  gapic_version: ::Google::Cloud::Logging::V2::VERSION
1634
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1618
1635
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1619
1636
 
1620
1637
  header_params = {}
@@ -1706,10 +1723,11 @@ module Google
1706
1723
  # Customize the options with defaults
1707
1724
  metadata = @config.rpcs.get_sink.metadata.to_h
1708
1725
 
1709
- # Set x-goog-api-client and x-goog-user-project headers
1726
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1710
1727
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1711
1728
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1712
1729
  gapic_version: ::Google::Cloud::Logging::V2::VERSION
1730
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1713
1731
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1714
1732
 
1715
1733
  header_params = {}
@@ -1820,10 +1838,11 @@ module Google
1820
1838
  # Customize the options with defaults
1821
1839
  metadata = @config.rpcs.create_sink.metadata.to_h
1822
1840
 
1823
- # Set x-goog-api-client and x-goog-user-project headers
1841
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1824
1842
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1825
1843
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1826
1844
  gapic_version: ::Google::Cloud::Logging::V2::VERSION
1845
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1827
1846
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1828
1847
 
1829
1848
  header_params = {}
@@ -1951,10 +1970,11 @@ module Google
1951
1970
  # Customize the options with defaults
1952
1971
  metadata = @config.rpcs.update_sink.metadata.to_h
1953
1972
 
1954
- # Set x-goog-api-client and x-goog-user-project headers
1973
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1955
1974
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1956
1975
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1957
1976
  gapic_version: ::Google::Cloud::Logging::V2::VERSION
1977
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1958
1978
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1959
1979
 
1960
1980
  header_params = {}
@@ -2047,10 +2067,11 @@ module Google
2047
2067
  # Customize the options with defaults
2048
2068
  metadata = @config.rpcs.delete_sink.metadata.to_h
2049
2069
 
2050
- # Set x-goog-api-client and x-goog-user-project headers
2070
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2051
2071
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2052
2072
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2053
2073
  gapic_version: ::Google::Cloud::Logging::V2::VERSION
2074
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2054
2075
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2055
2076
 
2056
2077
  header_params = {}
@@ -2152,10 +2173,11 @@ module Google
2152
2173
  # Customize the options with defaults
2153
2174
  metadata = @config.rpcs.create_link.metadata.to_h
2154
2175
 
2155
- # Set x-goog-api-client and x-goog-user-project headers
2176
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2156
2177
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2157
2178
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2158
2179
  gapic_version: ::Google::Cloud::Logging::V2::VERSION
2180
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2159
2181
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2160
2182
 
2161
2183
  header_params = {}
@@ -2251,10 +2273,11 @@ module Google
2251
2273
  # Customize the options with defaults
2252
2274
  metadata = @config.rpcs.delete_link.metadata.to_h
2253
2275
 
2254
- # Set x-goog-api-client and x-goog-user-project headers
2276
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2255
2277
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2256
2278
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2257
2279
  gapic_version: ::Google::Cloud::Logging::V2::VERSION
2280
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2258
2281
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2259
2282
 
2260
2283
  header_params = {}
@@ -2352,10 +2375,11 @@ module Google
2352
2375
  # Customize the options with defaults
2353
2376
  metadata = @config.rpcs.list_links.metadata.to_h
2354
2377
 
2355
- # Set x-goog-api-client and x-goog-user-project headers
2378
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2356
2379
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2357
2380
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2358
2381
  gapic_version: ::Google::Cloud::Logging::V2::VERSION
2382
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2359
2383
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2360
2384
 
2361
2385
  header_params = {}
@@ -2443,10 +2467,11 @@ module Google
2443
2467
  # Customize the options with defaults
2444
2468
  metadata = @config.rpcs.get_link.metadata.to_h
2445
2469
 
2446
- # Set x-goog-api-client and x-goog-user-project headers
2470
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2447
2471
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2448
2472
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2449
2473
  gapic_version: ::Google::Cloud::Logging::V2::VERSION
2474
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2450
2475
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2451
2476
 
2452
2477
  header_params = {}
@@ -2546,10 +2571,11 @@ module Google
2546
2571
  # Customize the options with defaults
2547
2572
  metadata = @config.rpcs.list_exclusions.metadata.to_h
2548
2573
 
2549
- # Set x-goog-api-client and x-goog-user-project headers
2574
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2550
2575
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2551
2576
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2552
2577
  gapic_version: ::Google::Cloud::Logging::V2::VERSION
2578
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2553
2579
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2554
2580
 
2555
2581
  header_params = {}
@@ -2641,10 +2667,11 @@ module Google
2641
2667
  # Customize the options with defaults
2642
2668
  metadata = @config.rpcs.get_exclusion.metadata.to_h
2643
2669
 
2644
- # Set x-goog-api-client and x-goog-user-project headers
2670
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2645
2671
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2646
2672
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2647
2673
  gapic_version: ::Google::Cloud::Logging::V2::VERSION
2674
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2648
2675
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2649
2676
 
2650
2677
  header_params = {}
@@ -2741,10 +2768,11 @@ module Google
2741
2768
  # Customize the options with defaults
2742
2769
  metadata = @config.rpcs.create_exclusion.metadata.to_h
2743
2770
 
2744
- # Set x-goog-api-client and x-goog-user-project headers
2771
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2745
2772
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2746
2773
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2747
2774
  gapic_version: ::Google::Cloud::Logging::V2::VERSION
2775
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2748
2776
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2749
2777
 
2750
2778
  header_params = {}
@@ -2848,10 +2876,11 @@ module Google
2848
2876
  # Customize the options with defaults
2849
2877
  metadata = @config.rpcs.update_exclusion.metadata.to_h
2850
2878
 
2851
- # Set x-goog-api-client and x-goog-user-project headers
2879
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2852
2880
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2853
2881
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2854
2882
  gapic_version: ::Google::Cloud::Logging::V2::VERSION
2883
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2855
2884
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2856
2885
 
2857
2886
  header_params = {}
@@ -2942,10 +2971,11 @@ module Google
2942
2971
  # Customize the options with defaults
2943
2972
  metadata = @config.rpcs.delete_exclusion.metadata.to_h
2944
2973
 
2945
- # Set x-goog-api-client and x-goog-user-project headers
2974
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2946
2975
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2947
2976
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2948
2977
  gapic_version: ::Google::Cloud::Logging::V2::VERSION
2978
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2949
2979
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2950
2980
 
2951
2981
  header_params = {}
@@ -3050,10 +3080,11 @@ module Google
3050
3080
  # Customize the options with defaults
3051
3081
  metadata = @config.rpcs.get_cmek_settings.metadata.to_h
3052
3082
 
3053
- # Set x-goog-api-client and x-goog-user-project headers
3083
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3054
3084
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3055
3085
  lib_name: @config.lib_name, lib_version: @config.lib_version,
3056
3086
  gapic_version: ::Google::Cloud::Logging::V2::VERSION
3087
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3057
3088
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3058
3089
 
3059
3090
  header_params = {}
@@ -3176,10 +3207,11 @@ module Google
3176
3207
  # Customize the options with defaults
3177
3208
  metadata = @config.rpcs.update_cmek_settings.metadata.to_h
3178
3209
 
3179
- # Set x-goog-api-client and x-goog-user-project headers
3210
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3180
3211
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3181
3212
  lib_name: @config.lib_name, lib_version: @config.lib_version,
3182
3213
  gapic_version: ::Google::Cloud::Logging::V2::VERSION
3214
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3183
3215
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3184
3216
 
3185
3217
  header_params = {}
@@ -3284,10 +3316,11 @@ module Google
3284
3316
  # Customize the options with defaults
3285
3317
  metadata = @config.rpcs.get_settings.metadata.to_h
3286
3318
 
3287
- # Set x-goog-api-client and x-goog-user-project headers
3319
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3288
3320
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3289
3321
  lib_name: @config.lib_name, lib_version: @config.lib_version,
3290
3322
  gapic_version: ::Google::Cloud::Logging::V2::VERSION
3323
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3291
3324
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3292
3325
 
3293
3326
  header_params = {}
@@ -3408,10 +3441,11 @@ module Google
3408
3441
  # Customize the options with defaults
3409
3442
  metadata = @config.rpcs.update_settings.metadata.to_h
3410
3443
 
3411
- # Set x-goog-api-client and x-goog-user-project headers
3444
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3412
3445
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3413
3446
  lib_name: @config.lib_name, lib_version: @config.lib_version,
3414
3447
  gapic_version: ::Google::Cloud::Logging::V2::VERSION
3448
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3415
3449
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3416
3450
 
3417
3451
  header_params = {}
@@ -3509,10 +3543,11 @@ module Google
3509
3543
  # Customize the options with defaults
3510
3544
  metadata = @config.rpcs.copy_log_entries.metadata.to_h
3511
3545
 
3512
- # Set x-goog-api-client and x-goog-user-project headers
3546
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3513
3547
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3514
3548
  lib_name: @config.lib_name, lib_version: @config.lib_version,
3515
3549
  gapic_version: ::Google::Cloud::Logging::V2::VERSION
3550
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3516
3551
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3517
3552
 
3518
3553
  options.apply_defaults timeout: @config.rpcs.copy_log_entries.timeout,
@@ -26,6 +26,9 @@ module Google
26
26
  module ConfigService
27
27
  # Service that implements Longrunning Operations API.
28
28
  class Operations
29
+ # @private
30
+ API_VERSION = ""
31
+
29
32
  # @private
30
33
  DEFAULT_ENDPOINT_TEMPLATE = "logging.$UNIVERSE_DOMAIN$"
31
34
 
@@ -191,10 +194,11 @@ module Google
191
194
  # Customize the options with defaults
192
195
  metadata = @config.rpcs.list_operations.metadata.to_h
193
196
 
194
- # Set x-goog-api-client and x-goog-user-project headers
197
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
195
198
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
196
199
  lib_name: @config.lib_name, lib_version: @config.lib_version,
197
200
  gapic_version: ::Google::Cloud::Logging::V2::VERSION
201
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
198
202
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
199
203
 
200
204
  header_params = {}
@@ -287,10 +291,11 @@ module Google
287
291
  # Customize the options with defaults
288
292
  metadata = @config.rpcs.get_operation.metadata.to_h
289
293
 
290
- # Set x-goog-api-client and x-goog-user-project headers
294
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
291
295
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
292
296
  lib_name: @config.lib_name, lib_version: @config.lib_version,
293
297
  gapic_version: ::Google::Cloud::Logging::V2::VERSION
298
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
294
299
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
295
300
 
296
301
  header_params = {}
@@ -376,10 +381,11 @@ module Google
376
381
  # Customize the options with defaults
377
382
  metadata = @config.rpcs.delete_operation.metadata.to_h
378
383
 
379
- # Set x-goog-api-client and x-goog-user-project headers
384
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
380
385
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
381
386
  lib_name: @config.lib_name, lib_version: @config.lib_version,
382
387
  gapic_version: ::Google::Cloud::Logging::V2::VERSION
388
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
383
389
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
384
390
 
385
391
  header_params = {}
@@ -470,10 +476,11 @@ module Google
470
476
  # Customize the options with defaults
471
477
  metadata = @config.rpcs.cancel_operation.metadata.to_h
472
478
 
473
- # Set x-goog-api-client and x-goog-user-project headers
479
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
474
480
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
475
481
  lib_name: @config.lib_name, lib_version: @config.lib_version,
476
482
  gapic_version: ::Google::Cloud::Logging::V2::VERSION
483
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
477
484
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
478
485
 
479
486
  header_params = {}
@@ -574,10 +581,11 @@ module Google
574
581
  # Customize the options with defaults
575
582
  metadata = @config.rpcs.wait_operation.metadata.to_h
576
583
 
577
- # Set x-goog-api-client and x-goog-user-project headers
584
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
578
585
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
579
586
  lib_name: @config.lib_name, lib_version: @config.lib_version,
580
587
  gapic_version: ::Google::Cloud::Logging::V2::VERSION
588
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
581
589
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
582
590
 
583
591
  options.apply_defaults timeout: @config.rpcs.wait_operation.timeout,
@@ -30,6 +30,9 @@ module Google
30
30
  # Service for ingesting and querying logs.
31
31
  #
32
32
  class Client
33
+ # @private
34
+ API_VERSION = ""
35
+
33
36
  # @private
34
37
  DEFAULT_ENDPOINT_TEMPLATE = "logging.$UNIVERSE_DOMAIN$"
35
38
 
@@ -260,10 +263,11 @@ module Google
260
263
  # Customize the options with defaults
261
264
  metadata = @config.rpcs.delete_log.metadata.to_h
262
265
 
263
- # Set x-goog-api-client and x-goog-user-project headers
266
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
264
267
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
265
268
  lib_name: @config.lib_name, lib_version: @config.lib_version,
266
269
  gapic_version: ::Google::Cloud::Logging::V2::VERSION
270
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
267
271
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
268
272
 
269
273
  header_params = {}
@@ -418,10 +422,11 @@ module Google
418
422
  # Customize the options with defaults
419
423
  metadata = @config.rpcs.write_log_entries.metadata.to_h
420
424
 
421
- # Set x-goog-api-client and x-goog-user-project headers
425
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
422
426
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
423
427
  lib_name: @config.lib_name, lib_version: @config.lib_version,
424
428
  gapic_version: ::Google::Cloud::Logging::V2::VERSION
429
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
425
430
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
426
431
 
427
432
  options.apply_defaults timeout: @config.rpcs.write_log_entries.timeout,
@@ -541,10 +546,11 @@ module Google
541
546
  # Customize the options with defaults
542
547
  metadata = @config.rpcs.list_log_entries.metadata.to_h
543
548
 
544
- # Set x-goog-api-client and x-goog-user-project headers
549
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
545
550
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
546
551
  lib_name: @config.lib_name, lib_version: @config.lib_version,
547
552
  gapic_version: ::Google::Cloud::Logging::V2::VERSION
553
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
548
554
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
549
555
 
550
556
  options.apply_defaults timeout: @config.rpcs.list_log_entries.timeout,
@@ -630,10 +636,11 @@ module Google
630
636
  # Customize the options with defaults
631
637
  metadata = @config.rpcs.list_monitored_resource_descriptors.metadata.to_h
632
638
 
633
- # Set x-goog-api-client and x-goog-user-project headers
639
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
634
640
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
635
641
  lib_name: @config.lib_name, lib_version: @config.lib_version,
636
642
  gapic_version: ::Google::Cloud::Logging::V2::VERSION
643
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
637
644
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
638
645
 
639
646
  options.apply_defaults timeout: @config.rpcs.list_monitored_resource_descriptors.timeout,
@@ -739,10 +746,11 @@ module Google
739
746
  # Customize the options with defaults
740
747
  metadata = @config.rpcs.list_logs.metadata.to_h
741
748
 
742
- # Set x-goog-api-client and x-goog-user-project headers
749
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
743
750
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
744
751
  lib_name: @config.lib_name, lib_version: @config.lib_version,
745
752
  gapic_version: ::Google::Cloud::Logging::V2::VERSION
753
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
746
754
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
747
755
 
748
756
  header_params = {}
@@ -826,10 +834,11 @@ module Google
826
834
  # Customize the options with defaults
827
835
  metadata = @config.rpcs.tail_log_entries.metadata.to_h
828
836
 
829
- # Set x-goog-api-client and x-goog-user-project headers
837
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
830
838
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
831
839
  lib_name: @config.lib_name, lib_version: @config.lib_version,
832
840
  gapic_version: ::Google::Cloud::Logging::V2::VERSION
841
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
833
842
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
834
843
 
835
844
  options.apply_defaults timeout: @config.rpcs.tail_log_entries.timeout,
@@ -30,6 +30,9 @@ module Google
30
30
  # Service for configuring logs-based metrics.
31
31
  #
32
32
  class Client
33
+ # @private
34
+ API_VERSION = ""
35
+
33
36
  # @private
34
37
  DEFAULT_ENDPOINT_TEMPLATE = "logging.$UNIVERSE_DOMAIN$"
35
38
 
@@ -252,10 +255,11 @@ module Google
252
255
  # Customize the options with defaults
253
256
  metadata = @config.rpcs.list_log_metrics.metadata.to_h
254
257
 
255
- # Set x-goog-api-client and x-goog-user-project headers
258
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
256
259
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
257
260
  lib_name: @config.lib_name, lib_version: @config.lib_version,
258
261
  gapic_version: ::Google::Cloud::Logging::V2::VERSION
262
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
259
263
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
260
264
 
261
265
  header_params = {}
@@ -340,10 +344,11 @@ module Google
340
344
  # Customize the options with defaults
341
345
  metadata = @config.rpcs.get_log_metric.metadata.to_h
342
346
 
343
- # Set x-goog-api-client and x-goog-user-project headers
347
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
344
348
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
345
349
  lib_name: @config.lib_name, lib_version: @config.lib_version,
346
350
  gapic_version: ::Google::Cloud::Logging::V2::VERSION
351
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
347
352
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
348
353
 
349
354
  header_params = {}
@@ -432,10 +437,11 @@ module Google
432
437
  # Customize the options with defaults
433
438
  metadata = @config.rpcs.create_log_metric.metadata.to_h
434
439
 
435
- # Set x-goog-api-client and x-goog-user-project headers
440
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
436
441
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
437
442
  lib_name: @config.lib_name, lib_version: @config.lib_version,
438
443
  gapic_version: ::Google::Cloud::Logging::V2::VERSION
444
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
439
445
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
440
446
 
441
447
  header_params = {}
@@ -525,10 +531,11 @@ module Google
525
531
  # Customize the options with defaults
526
532
  metadata = @config.rpcs.update_log_metric.metadata.to_h
527
533
 
528
- # Set x-goog-api-client and x-goog-user-project headers
534
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
529
535
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
530
536
  lib_name: @config.lib_name, lib_version: @config.lib_version,
531
537
  gapic_version: ::Google::Cloud::Logging::V2::VERSION
538
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
532
539
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
533
540
 
534
541
  header_params = {}
@@ -612,10 +619,11 @@ module Google
612
619
  # Customize the options with defaults
613
620
  metadata = @config.rpcs.delete_log_metric.metadata.to_h
614
621
 
615
- # Set x-goog-api-client and x-goog-user-project headers
622
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
616
623
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
617
624
  lib_name: @config.lib_name, lib_version: @config.lib_version,
618
625
  gapic_version: ::Google::Cloud::Logging::V2::VERSION
626
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
619
627
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
620
628
 
621
629
  header_params = {}
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Logging
23
23
  module V2
24
- VERSION = "0.13.0"
24
+ VERSION = "1.0.0"
25
25
  end
26
26
  end
27
27
  end
@@ -118,6 +118,10 @@ module Google
118
118
  # @return [::String]
119
119
  # Optional link to proto reference documentation. Example:
120
120
  # https://cloud.google.com/pubsub/lite/docs/reference/rpc
121
+ # @!attribute [rw] rest_reference_documentation_uri
122
+ # @return [::String]
123
+ # Optional link to REST reference documentation. Example:
124
+ # https://cloud.google.com/pubsub/lite/docs/reference/rest
121
125
  class Publishing
122
126
  include ::Google::Protobuf::MessageExts
123
127
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -41,7 +41,7 @@ module Google
41
41
  # @return [::String]
42
42
  # Required. The monitored resource type. For example, the type
43
43
  # `"cloudsql_database"` represents databases in Google Cloud SQL.
44
- # For a list of types, see [Monitoring resource
44
+ # For a list of types, see [Monitored resource
45
45
  # types](https://cloud.google.com/monitoring/api/resources)
46
46
  # and [Logging resource
47
47
  # types](https://cloud.google.com/logging/docs/api/v2/resource-list).
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-logging-v2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.13.0
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-02-26 00:00:00.000000000 Z
11
+ date: 2024-07-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common