google-cloud-logging-v2 0.5.3 → 0.5.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 100efd7dd5eabf59b7be3d362b4fb650ff5f3acb2a423ad66a484cdff734aa12
|
4
|
+
data.tar.gz: cea243fe82a40c90294c23c63f807f06d4e05e949c92337b95f581747d28a402
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1fd33e72a1dfe2b3b2e7d6c2f65b66d0289b2ec21dc41e6726a4c7548f5e9874a34feb6c213fdcab530ee08adc885601771294a8372ba3ef0e666dc4d627d0fa
|
7
|
+
data.tar.gz: c8d72fadefdccc73befabc249a3af7b3cbfc8fcf354ba0bb08bd4831001811153ff15bfa62308e9fc1dd09a17cf0049e0d9c5ef4421457914a6a11d8cead9386
|
@@ -41,13 +41,12 @@ module Google
|
|
41
41
|
# See {::Google::Cloud::Logging::V2::ConfigService::Client::Configuration}
|
42
42
|
# for a description of the configuration fields.
|
43
43
|
#
|
44
|
-
#
|
44
|
+
# @example
|
45
45
|
#
|
46
|
-
#
|
47
|
-
#
|
48
|
-
#
|
49
|
-
#
|
50
|
-
# end
|
46
|
+
# # Modify the configuration for all ConfigService clients
|
47
|
+
# ::Google::Cloud::Logging::V2::ConfigService::Client.configure do |config|
|
48
|
+
# config.timeout = 10.0
|
49
|
+
# end
|
51
50
|
#
|
52
51
|
# @yield [config] Configure the Client client.
|
53
52
|
# @yieldparam config [Client::Configuration]
|
@@ -135,19 +134,15 @@ module Google
|
|
135
134
|
##
|
136
135
|
# Create a new ConfigService client object.
|
137
136
|
#
|
138
|
-
#
|
139
|
-
#
|
140
|
-
# To create a new ConfigService client with the default
|
141
|
-
# configuration:
|
137
|
+
# @example
|
142
138
|
#
|
143
|
-
#
|
139
|
+
# # Create a client using the default configuration
|
140
|
+
# client = ::Google::Cloud::Logging::V2::ConfigService::Client.new
|
144
141
|
#
|
145
|
-
#
|
146
|
-
#
|
147
|
-
#
|
148
|
-
#
|
149
|
-
# config.timeout = 10.0
|
150
|
-
# end
|
142
|
+
# # Create a client using a custom configuration
|
143
|
+
# client = ::Google::Cloud::Logging::V2::ConfigService::Client.new do |config|
|
144
|
+
# config.timeout = 10.0
|
145
|
+
# end
|
151
146
|
#
|
152
147
|
# @yield [config] Configure the ConfigService client.
|
153
148
|
# @yieldparam config [Client::Configuration]
|
@@ -167,10 +162,9 @@ module Google
|
|
167
162
|
|
168
163
|
# Create credentials
|
169
164
|
credentials = @config.credentials
|
170
|
-
# Use self-signed JWT if the
|
165
|
+
# Use self-signed JWT if the endpoint is unchanged from default,
|
171
166
|
# but only if the default endpoint does not have a region prefix.
|
172
|
-
enable_self_signed_jwt = @config.
|
173
|
-
@config.endpoint == Client.configure.endpoint &&
|
167
|
+
enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
|
174
168
|
!@config.endpoint.split(".").first.include?("-")
|
175
169
|
credentials ||= Credentials.default scope: @config.scope,
|
176
170
|
enable_self_signed_jwt: enable_self_signed_jwt
|
@@ -264,7 +258,9 @@ module Google
|
|
264
258
|
options.apply_defaults timeout: @config.rpcs.list_buckets.timeout,
|
265
259
|
metadata: metadata,
|
266
260
|
retry_policy: @config.rpcs.list_buckets.retry_policy
|
267
|
-
|
261
|
+
|
262
|
+
options.apply_defaults timeout: @config.timeout,
|
263
|
+
metadata: @config.metadata,
|
268
264
|
retry_policy: @config.retry_policy
|
269
265
|
|
270
266
|
@config_service_stub.call_rpc :list_buckets, request, options: options do |response, operation|
|
@@ -339,7 +335,9 @@ module Google
|
|
339
335
|
options.apply_defaults timeout: @config.rpcs.get_bucket.timeout,
|
340
336
|
metadata: metadata,
|
341
337
|
retry_policy: @config.rpcs.get_bucket.retry_policy
|
342
|
-
|
338
|
+
|
339
|
+
options.apply_defaults timeout: @config.timeout,
|
340
|
+
metadata: @config.metadata,
|
343
341
|
retry_policy: @config.retry_policy
|
344
342
|
|
345
343
|
@config_service_stub.call_rpc :get_bucket, request, options: options do |response, operation|
|
@@ -418,7 +416,9 @@ module Google
|
|
418
416
|
options.apply_defaults timeout: @config.rpcs.create_bucket.timeout,
|
419
417
|
metadata: metadata,
|
420
418
|
retry_policy: @config.rpcs.create_bucket.retry_policy
|
421
|
-
|
419
|
+
|
420
|
+
options.apply_defaults timeout: @config.timeout,
|
421
|
+
metadata: @config.metadata,
|
422
422
|
retry_policy: @config.retry_policy
|
423
423
|
|
424
424
|
@config_service_stub.call_rpc :create_bucket, request, options: options do |response, operation|
|
@@ -514,7 +514,9 @@ module Google
|
|
514
514
|
options.apply_defaults timeout: @config.rpcs.update_bucket.timeout,
|
515
515
|
metadata: metadata,
|
516
516
|
retry_policy: @config.rpcs.update_bucket.retry_policy
|
517
|
-
|
517
|
+
|
518
|
+
options.apply_defaults timeout: @config.timeout,
|
519
|
+
metadata: @config.metadata,
|
518
520
|
retry_policy: @config.retry_policy
|
519
521
|
|
520
522
|
@config_service_stub.call_rpc :update_bucket, request, options: options do |response, operation|
|
@@ -591,7 +593,9 @@ module Google
|
|
591
593
|
options.apply_defaults timeout: @config.rpcs.delete_bucket.timeout,
|
592
594
|
metadata: metadata,
|
593
595
|
retry_policy: @config.rpcs.delete_bucket.retry_policy
|
594
|
-
|
596
|
+
|
597
|
+
options.apply_defaults timeout: @config.timeout,
|
598
|
+
metadata: @config.metadata,
|
595
599
|
retry_policy: @config.retry_policy
|
596
600
|
|
597
601
|
@config_service_stub.call_rpc :delete_bucket, request, options: options do |response, operation|
|
@@ -666,7 +670,9 @@ module Google
|
|
666
670
|
options.apply_defaults timeout: @config.rpcs.undelete_bucket.timeout,
|
667
671
|
metadata: metadata,
|
668
672
|
retry_policy: @config.rpcs.undelete_bucket.retry_policy
|
669
|
-
|
673
|
+
|
674
|
+
options.apply_defaults timeout: @config.timeout,
|
675
|
+
metadata: @config.metadata,
|
670
676
|
retry_policy: @config.retry_policy
|
671
677
|
|
672
678
|
@config_service_stub.call_rpc :undelete_bucket, request, options: options do |response, operation|
|
@@ -743,7 +749,9 @@ module Google
|
|
743
749
|
options.apply_defaults timeout: @config.rpcs.list_views.timeout,
|
744
750
|
metadata: metadata,
|
745
751
|
retry_policy: @config.rpcs.list_views.retry_policy
|
746
|
-
|
752
|
+
|
753
|
+
options.apply_defaults timeout: @config.timeout,
|
754
|
+
metadata: @config.metadata,
|
747
755
|
retry_policy: @config.retry_policy
|
748
756
|
|
749
757
|
@config_service_stub.call_rpc :list_views, request, options: options do |response, operation|
|
@@ -815,7 +823,9 @@ module Google
|
|
815
823
|
options.apply_defaults timeout: @config.rpcs.get_view.timeout,
|
816
824
|
metadata: metadata,
|
817
825
|
retry_policy: @config.rpcs.get_view.retry_policy
|
818
|
-
|
826
|
+
|
827
|
+
options.apply_defaults timeout: @config.timeout,
|
828
|
+
metadata: @config.metadata,
|
819
829
|
retry_policy: @config.retry_policy
|
820
830
|
|
821
831
|
@config_service_stub.call_rpc :get_view, request, options: options do |response, operation|
|
@@ -891,7 +901,9 @@ module Google
|
|
891
901
|
options.apply_defaults timeout: @config.rpcs.create_view.timeout,
|
892
902
|
metadata: metadata,
|
893
903
|
retry_policy: @config.rpcs.create_view.retry_policy
|
894
|
-
|
904
|
+
|
905
|
+
options.apply_defaults timeout: @config.timeout,
|
906
|
+
metadata: @config.metadata,
|
895
907
|
retry_policy: @config.retry_policy
|
896
908
|
|
897
909
|
@config_service_stub.call_rpc :create_view, request, options: options do |response, operation|
|
@@ -974,7 +986,9 @@ module Google
|
|
974
986
|
options.apply_defaults timeout: @config.rpcs.update_view.timeout,
|
975
987
|
metadata: metadata,
|
976
988
|
retry_policy: @config.rpcs.update_view.retry_policy
|
977
|
-
|
989
|
+
|
990
|
+
options.apply_defaults timeout: @config.timeout,
|
991
|
+
metadata: @config.metadata,
|
978
992
|
retry_policy: @config.retry_policy
|
979
993
|
|
980
994
|
@config_service_stub.call_rpc :update_view, request, options: options do |response, operation|
|
@@ -1045,7 +1059,9 @@ module Google
|
|
1045
1059
|
options.apply_defaults timeout: @config.rpcs.delete_view.timeout,
|
1046
1060
|
metadata: metadata,
|
1047
1061
|
retry_policy: @config.rpcs.delete_view.retry_policy
|
1048
|
-
|
1062
|
+
|
1063
|
+
options.apply_defaults timeout: @config.timeout,
|
1064
|
+
metadata: @config.metadata,
|
1049
1065
|
retry_policy: @config.retry_policy
|
1050
1066
|
|
1051
1067
|
@config_service_stub.call_rpc :delete_view, request, options: options do |response, operation|
|
@@ -1125,7 +1141,9 @@ module Google
|
|
1125
1141
|
options.apply_defaults timeout: @config.rpcs.list_sinks.timeout,
|
1126
1142
|
metadata: metadata,
|
1127
1143
|
retry_policy: @config.rpcs.list_sinks.retry_policy
|
1128
|
-
|
1144
|
+
|
1145
|
+
options.apply_defaults timeout: @config.timeout,
|
1146
|
+
metadata: @config.metadata,
|
1129
1147
|
retry_policy: @config.retry_policy
|
1130
1148
|
|
1131
1149
|
@config_service_stub.call_rpc :list_sinks, request, options: options do |response, operation|
|
@@ -1199,7 +1217,9 @@ module Google
|
|
1199
1217
|
options.apply_defaults timeout: @config.rpcs.get_sink.timeout,
|
1200
1218
|
metadata: metadata,
|
1201
1219
|
retry_policy: @config.rpcs.get_sink.retry_policy
|
1202
|
-
|
1220
|
+
|
1221
|
+
options.apply_defaults timeout: @config.timeout,
|
1222
|
+
metadata: @config.metadata,
|
1203
1223
|
retry_policy: @config.retry_policy
|
1204
1224
|
|
1205
1225
|
@config_service_stub.call_rpc :get_sink, request, options: options do |response, operation|
|
@@ -1290,7 +1310,9 @@ module Google
|
|
1290
1310
|
options.apply_defaults timeout: @config.rpcs.create_sink.timeout,
|
1291
1311
|
metadata: metadata,
|
1292
1312
|
retry_policy: @config.rpcs.create_sink.retry_policy
|
1293
|
-
|
1313
|
+
|
1314
|
+
options.apply_defaults timeout: @config.timeout,
|
1315
|
+
metadata: @config.metadata,
|
1294
1316
|
retry_policy: @config.retry_policy
|
1295
1317
|
|
1296
1318
|
@config_service_stub.call_rpc :create_sink, request, options: options do |response, operation|
|
@@ -1398,7 +1420,9 @@ module Google
|
|
1398
1420
|
options.apply_defaults timeout: @config.rpcs.update_sink.timeout,
|
1399
1421
|
metadata: metadata,
|
1400
1422
|
retry_policy: @config.rpcs.update_sink.retry_policy
|
1401
|
-
|
1423
|
+
|
1424
|
+
options.apply_defaults timeout: @config.timeout,
|
1425
|
+
metadata: @config.metadata,
|
1402
1426
|
retry_policy: @config.retry_policy
|
1403
1427
|
|
1404
1428
|
@config_service_stub.call_rpc :update_sink, request, options: options do |response, operation|
|
@@ -1473,7 +1497,9 @@ module Google
|
|
1473
1497
|
options.apply_defaults timeout: @config.rpcs.delete_sink.timeout,
|
1474
1498
|
metadata: metadata,
|
1475
1499
|
retry_policy: @config.rpcs.delete_sink.retry_policy
|
1476
|
-
|
1500
|
+
|
1501
|
+
options.apply_defaults timeout: @config.timeout,
|
1502
|
+
metadata: @config.metadata,
|
1477
1503
|
retry_policy: @config.retry_policy
|
1478
1504
|
|
1479
1505
|
@config_service_stub.call_rpc :delete_sink, request, options: options do |response, operation|
|
@@ -1553,7 +1579,9 @@ module Google
|
|
1553
1579
|
options.apply_defaults timeout: @config.rpcs.list_exclusions.timeout,
|
1554
1580
|
metadata: metadata,
|
1555
1581
|
retry_policy: @config.rpcs.list_exclusions.retry_policy
|
1556
|
-
|
1582
|
+
|
1583
|
+
options.apply_defaults timeout: @config.timeout,
|
1584
|
+
metadata: @config.metadata,
|
1557
1585
|
retry_policy: @config.retry_policy
|
1558
1586
|
|
1559
1587
|
@config_service_stub.call_rpc :list_exclusions, request, options: options do |response, operation|
|
@@ -1627,7 +1655,9 @@ module Google
|
|
1627
1655
|
options.apply_defaults timeout: @config.rpcs.get_exclusion.timeout,
|
1628
1656
|
metadata: metadata,
|
1629
1657
|
retry_policy: @config.rpcs.get_exclusion.retry_policy
|
1630
|
-
|
1658
|
+
|
1659
|
+
options.apply_defaults timeout: @config.timeout,
|
1660
|
+
metadata: @config.metadata,
|
1631
1661
|
retry_policy: @config.retry_policy
|
1632
1662
|
|
1633
1663
|
@config_service_stub.call_rpc :get_exclusion, request, options: options do |response, operation|
|
@@ -1705,7 +1735,9 @@ module Google
|
|
1705
1735
|
options.apply_defaults timeout: @config.rpcs.create_exclusion.timeout,
|
1706
1736
|
metadata: metadata,
|
1707
1737
|
retry_policy: @config.rpcs.create_exclusion.retry_policy
|
1708
|
-
|
1738
|
+
|
1739
|
+
options.apply_defaults timeout: @config.timeout,
|
1740
|
+
metadata: @config.metadata,
|
1709
1741
|
retry_policy: @config.retry_policy
|
1710
1742
|
|
1711
1743
|
@config_service_stub.call_rpc :create_exclusion, request, options: options do |response, operation|
|
@@ -1789,7 +1821,9 @@ module Google
|
|
1789
1821
|
options.apply_defaults timeout: @config.rpcs.update_exclusion.timeout,
|
1790
1822
|
metadata: metadata,
|
1791
1823
|
retry_policy: @config.rpcs.update_exclusion.retry_policy
|
1792
|
-
|
1824
|
+
|
1825
|
+
options.apply_defaults timeout: @config.timeout,
|
1826
|
+
metadata: @config.metadata,
|
1793
1827
|
retry_policy: @config.retry_policy
|
1794
1828
|
|
1795
1829
|
@config_service_stub.call_rpc :update_exclusion, request, options: options do |response, operation|
|
@@ -1862,7 +1896,9 @@ module Google
|
|
1862
1896
|
options.apply_defaults timeout: @config.rpcs.delete_exclusion.timeout,
|
1863
1897
|
metadata: metadata,
|
1864
1898
|
retry_policy: @config.rpcs.delete_exclusion.retry_policy
|
1865
|
-
|
1899
|
+
|
1900
|
+
options.apply_defaults timeout: @config.timeout,
|
1901
|
+
metadata: @config.metadata,
|
1866
1902
|
retry_policy: @config.retry_policy
|
1867
1903
|
|
1868
1904
|
@config_service_stub.call_rpc :delete_exclusion, request, options: options do |response, operation|
|
@@ -1947,7 +1983,9 @@ module Google
|
|
1947
1983
|
options.apply_defaults timeout: @config.rpcs.get_cmek_settings.timeout,
|
1948
1984
|
metadata: metadata,
|
1949
1985
|
retry_policy: @config.rpcs.get_cmek_settings.retry_policy
|
1950
|
-
|
1986
|
+
|
1987
|
+
options.apply_defaults timeout: @config.timeout,
|
1988
|
+
metadata: @config.metadata,
|
1951
1989
|
retry_policy: @config.retry_policy
|
1952
1990
|
|
1953
1991
|
@config_service_stub.call_rpc :get_cmek_settings, request, options: options do |response, operation|
|
@@ -2052,7 +2090,9 @@ module Google
|
|
2052
2090
|
options.apply_defaults timeout: @config.rpcs.update_cmek_settings.timeout,
|
2053
2091
|
metadata: metadata,
|
2054
2092
|
retry_policy: @config.rpcs.update_cmek_settings.retry_policy
|
2055
|
-
|
2093
|
+
|
2094
|
+
options.apply_defaults timeout: @config.timeout,
|
2095
|
+
metadata: @config.metadata,
|
2056
2096
|
retry_policy: @config.retry_policy
|
2057
2097
|
|
2058
2098
|
@config_service_stub.call_rpc :update_cmek_settings, request, options: options do |response, operation|
|
@@ -2076,22 +2116,21 @@ module Google
|
|
2076
2116
|
# Configuration can be applied globally to all clients, or to a single client
|
2077
2117
|
# on construction.
|
2078
2118
|
#
|
2079
|
-
#
|
2080
|
-
#
|
2081
|
-
#
|
2082
|
-
# to 20 seconds,
|
2083
|
-
#
|
2084
|
-
#
|
2085
|
-
#
|
2086
|
-
#
|
2087
|
-
#
|
2088
|
-
#
|
2089
|
-
#
|
2090
|
-
#
|
2091
|
-
#
|
2092
|
-
#
|
2093
|
-
#
|
2094
|
-
# end
|
2119
|
+
# @example
|
2120
|
+
#
|
2121
|
+
# # Modify the global config, setting the timeout for
|
2122
|
+
# # list_buckets to 20 seconds,
|
2123
|
+
# # and all remaining timeouts to 10 seconds.
|
2124
|
+
# ::Google::Cloud::Logging::V2::ConfigService::Client.configure do |config|
|
2125
|
+
# config.timeout = 10.0
|
2126
|
+
# config.rpcs.list_buckets.timeout = 20.0
|
2127
|
+
# end
|
2128
|
+
#
|
2129
|
+
# # Apply the above configuration only to a new client.
|
2130
|
+
# client = ::Google::Cloud::Logging::V2::ConfigService::Client.new do |config|
|
2131
|
+
# config.timeout = 10.0
|
2132
|
+
# config.rpcs.list_buckets.timeout = 20.0
|
2133
|
+
# end
|
2095
2134
|
#
|
2096
2135
|
# @!attribute [rw] endpoint
|
2097
2136
|
# The hostname or hostname:port of the service endpoint.
|
@@ -41,13 +41,12 @@ module Google
|
|
41
41
|
# See {::Google::Cloud::Logging::V2::LoggingService::Client::Configuration}
|
42
42
|
# for a description of the configuration fields.
|
43
43
|
#
|
44
|
-
#
|
44
|
+
# @example
|
45
45
|
#
|
46
|
-
#
|
47
|
-
#
|
48
|
-
#
|
49
|
-
#
|
50
|
-
# end
|
46
|
+
# # Modify the configuration for all LoggingService clients
|
47
|
+
# ::Google::Cloud::Logging::V2::LoggingService::Client.configure do |config|
|
48
|
+
# config.timeout = 10.0
|
49
|
+
# end
|
51
50
|
#
|
52
51
|
# @yield [config] Configure the Client client.
|
53
52
|
# @yieldparam config [Client::Configuration]
|
@@ -124,19 +123,15 @@ module Google
|
|
124
123
|
##
|
125
124
|
# Create a new LoggingService client object.
|
126
125
|
#
|
127
|
-
#
|
128
|
-
#
|
129
|
-
# To create a new LoggingService client with the default
|
130
|
-
# configuration:
|
126
|
+
# @example
|
131
127
|
#
|
132
|
-
#
|
128
|
+
# # Create a client using the default configuration
|
129
|
+
# client = ::Google::Cloud::Logging::V2::LoggingService::Client.new
|
133
130
|
#
|
134
|
-
#
|
135
|
-
#
|
136
|
-
#
|
137
|
-
#
|
138
|
-
# config.timeout = 10.0
|
139
|
-
# end
|
131
|
+
# # Create a client using a custom configuration
|
132
|
+
# client = ::Google::Cloud::Logging::V2::LoggingService::Client.new do |config|
|
133
|
+
# config.timeout = 10.0
|
134
|
+
# end
|
140
135
|
#
|
141
136
|
# @yield [config] Configure the LoggingService client.
|
142
137
|
# @yieldparam config [Client::Configuration]
|
@@ -156,10 +151,9 @@ module Google
|
|
156
151
|
|
157
152
|
# Create credentials
|
158
153
|
credentials = @config.credentials
|
159
|
-
# Use self-signed JWT if the
|
154
|
+
# Use self-signed JWT if the endpoint is unchanged from default,
|
160
155
|
# but only if the default endpoint does not have a region prefix.
|
161
|
-
enable_self_signed_jwt = @config.
|
162
|
-
@config.endpoint == Client.configure.endpoint &&
|
156
|
+
enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
|
163
157
|
!@config.endpoint.split(".").first.include?("-")
|
164
158
|
credentials ||= Credentials.default scope: @config.scope,
|
165
159
|
enable_self_signed_jwt: enable_self_signed_jwt
|
@@ -249,7 +243,9 @@ module Google
|
|
249
243
|
options.apply_defaults timeout: @config.rpcs.delete_log.timeout,
|
250
244
|
metadata: metadata,
|
251
245
|
retry_policy: @config.rpcs.delete_log.retry_policy
|
252
|
-
|
246
|
+
|
247
|
+
options.apply_defaults timeout: @config.timeout,
|
248
|
+
metadata: @config.metadata,
|
253
249
|
retry_policy: @config.retry_policy
|
254
250
|
|
255
251
|
@logging_service_stub.call_rpc :delete_log, request, options: options do |response, operation|
|
@@ -380,7 +376,9 @@ module Google
|
|
380
376
|
options.apply_defaults timeout: @config.rpcs.write_log_entries.timeout,
|
381
377
|
metadata: metadata,
|
382
378
|
retry_policy: @config.rpcs.write_log_entries.retry_policy
|
383
|
-
|
379
|
+
|
380
|
+
options.apply_defaults timeout: @config.timeout,
|
381
|
+
metadata: @config.metadata,
|
384
382
|
retry_policy: @config.retry_policy
|
385
383
|
|
386
384
|
@logging_service_stub.call_rpc :write_log_entries, request, options: options do |response, operation|
|
@@ -482,7 +480,9 @@ module Google
|
|
482
480
|
options.apply_defaults timeout: @config.rpcs.list_log_entries.timeout,
|
483
481
|
metadata: metadata,
|
484
482
|
retry_policy: @config.rpcs.list_log_entries.retry_policy
|
485
|
-
|
483
|
+
|
484
|
+
options.apply_defaults timeout: @config.timeout,
|
485
|
+
metadata: @config.metadata,
|
486
486
|
retry_policy: @config.retry_policy
|
487
487
|
|
488
488
|
@logging_service_stub.call_rpc :list_log_entries, request, options: options do |response, operation|
|
@@ -550,7 +550,9 @@ module Google
|
|
550
550
|
options.apply_defaults timeout: @config.rpcs.list_monitored_resource_descriptors.timeout,
|
551
551
|
metadata: metadata,
|
552
552
|
retry_policy: @config.rpcs.list_monitored_resource_descriptors.retry_policy
|
553
|
-
|
553
|
+
|
554
|
+
options.apply_defaults timeout: @config.timeout,
|
555
|
+
metadata: @config.metadata,
|
554
556
|
retry_policy: @config.retry_policy
|
555
557
|
|
556
558
|
@logging_service_stub.call_rpc :list_monitored_resource_descriptors, request, options: options do |response, operation|
|
@@ -644,7 +646,9 @@ module Google
|
|
644
646
|
options.apply_defaults timeout: @config.rpcs.list_logs.timeout,
|
645
647
|
metadata: metadata,
|
646
648
|
retry_policy: @config.rpcs.list_logs.retry_policy
|
647
|
-
|
649
|
+
|
650
|
+
options.apply_defaults timeout: @config.timeout,
|
651
|
+
metadata: @config.metadata,
|
648
652
|
retry_policy: @config.retry_policy
|
649
653
|
|
650
654
|
@logging_service_stub.call_rpc :list_logs, request, options: options do |response, operation|
|
@@ -697,7 +701,9 @@ module Google
|
|
697
701
|
options.apply_defaults timeout: @config.rpcs.tail_log_entries.timeout,
|
698
702
|
metadata: metadata,
|
699
703
|
retry_policy: @config.rpcs.tail_log_entries.retry_policy
|
700
|
-
|
704
|
+
|
705
|
+
options.apply_defaults timeout: @config.timeout,
|
706
|
+
metadata: @config.metadata,
|
701
707
|
retry_policy: @config.retry_policy
|
702
708
|
|
703
709
|
@logging_service_stub.call_rpc :tail_log_entries, request, options: options do |response, operation|
|
@@ -721,22 +727,21 @@ module Google
|
|
721
727
|
# Configuration can be applied globally to all clients, or to a single client
|
722
728
|
# on construction.
|
723
729
|
#
|
724
|
-
#
|
725
|
-
#
|
726
|
-
#
|
727
|
-
# to 20 seconds,
|
728
|
-
#
|
729
|
-
#
|
730
|
-
#
|
731
|
-
#
|
732
|
-
#
|
733
|
-
#
|
734
|
-
#
|
735
|
-
#
|
736
|
-
#
|
737
|
-
#
|
738
|
-
#
|
739
|
-
# end
|
730
|
+
# @example
|
731
|
+
#
|
732
|
+
# # Modify the global config, setting the timeout for
|
733
|
+
# # delete_log to 20 seconds,
|
734
|
+
# # and all remaining timeouts to 10 seconds.
|
735
|
+
# ::Google::Cloud::Logging::V2::LoggingService::Client.configure do |config|
|
736
|
+
# config.timeout = 10.0
|
737
|
+
# config.rpcs.delete_log.timeout = 20.0
|
738
|
+
# end
|
739
|
+
#
|
740
|
+
# # Apply the above configuration only to a new client.
|
741
|
+
# client = ::Google::Cloud::Logging::V2::LoggingService::Client.new do |config|
|
742
|
+
# config.timeout = 10.0
|
743
|
+
# config.rpcs.delete_log.timeout = 20.0
|
744
|
+
# end
|
740
745
|
#
|
741
746
|
# @!attribute [rw] endpoint
|
742
747
|
# The hostname or hostname:port of the service endpoint.
|
@@ -41,13 +41,12 @@ module Google
|
|
41
41
|
# See {::Google::Cloud::Logging::V2::MetricsService::Client::Configuration}
|
42
42
|
# for a description of the configuration fields.
|
43
43
|
#
|
44
|
-
#
|
44
|
+
# @example
|
45
45
|
#
|
46
|
-
#
|
47
|
-
#
|
48
|
-
#
|
49
|
-
#
|
50
|
-
# end
|
46
|
+
# # Modify the configuration for all MetricsService clients
|
47
|
+
# ::Google::Cloud::Logging::V2::MetricsService::Client.configure do |config|
|
48
|
+
# config.timeout = 10.0
|
49
|
+
# end
|
51
50
|
#
|
52
51
|
# @yield [config] Configure the Client client.
|
53
52
|
# @yieldparam config [Client::Configuration]
|
@@ -116,19 +115,15 @@ module Google
|
|
116
115
|
##
|
117
116
|
# Create a new MetricsService client object.
|
118
117
|
#
|
119
|
-
#
|
120
|
-
#
|
121
|
-
# To create a new MetricsService client with the default
|
122
|
-
# configuration:
|
123
|
-
#
|
124
|
-
# client = ::Google::Cloud::Logging::V2::MetricsService::Client.new
|
118
|
+
# @example
|
125
119
|
#
|
126
|
-
#
|
127
|
-
#
|
120
|
+
# # Create a client using the default configuration
|
121
|
+
# client = ::Google::Cloud::Logging::V2::MetricsService::Client.new
|
128
122
|
#
|
129
|
-
#
|
130
|
-
#
|
131
|
-
#
|
123
|
+
# # Create a client using a custom configuration
|
124
|
+
# client = ::Google::Cloud::Logging::V2::MetricsService::Client.new do |config|
|
125
|
+
# config.timeout = 10.0
|
126
|
+
# end
|
132
127
|
#
|
133
128
|
# @yield [config] Configure the MetricsService client.
|
134
129
|
# @yieldparam config [Client::Configuration]
|
@@ -148,10 +143,9 @@ module Google
|
|
148
143
|
|
149
144
|
# Create credentials
|
150
145
|
credentials = @config.credentials
|
151
|
-
# Use self-signed JWT if the
|
146
|
+
# Use self-signed JWT if the endpoint is unchanged from default,
|
152
147
|
# but only if the default endpoint does not have a region prefix.
|
153
|
-
enable_self_signed_jwt = @config.
|
154
|
-
@config.endpoint == Client.configure.endpoint &&
|
148
|
+
enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
|
155
149
|
!@config.endpoint.split(".").first.include?("-")
|
156
150
|
credentials ||= Credentials.default scope: @config.scope,
|
157
151
|
enable_self_signed_jwt: enable_self_signed_jwt
|
@@ -238,7 +232,9 @@ module Google
|
|
238
232
|
options.apply_defaults timeout: @config.rpcs.list_log_metrics.timeout,
|
239
233
|
metadata: metadata,
|
240
234
|
retry_policy: @config.rpcs.list_log_metrics.retry_policy
|
241
|
-
|
235
|
+
|
236
|
+
options.apply_defaults timeout: @config.timeout,
|
237
|
+
metadata: @config.metadata,
|
242
238
|
retry_policy: @config.retry_policy
|
243
239
|
|
244
240
|
@metrics_service_stub.call_rpc :list_log_metrics, request, options: options do |response, operation|
|
@@ -307,7 +303,9 @@ module Google
|
|
307
303
|
options.apply_defaults timeout: @config.rpcs.get_log_metric.timeout,
|
308
304
|
metadata: metadata,
|
309
305
|
retry_policy: @config.rpcs.get_log_metric.retry_policy
|
310
|
-
|
306
|
+
|
307
|
+
options.apply_defaults timeout: @config.timeout,
|
308
|
+
metadata: @config.metadata,
|
311
309
|
retry_policy: @config.retry_policy
|
312
310
|
|
313
311
|
@metrics_service_stub.call_rpc :get_log_metric, request, options: options do |response, operation|
|
@@ -380,7 +378,9 @@ module Google
|
|
380
378
|
options.apply_defaults timeout: @config.rpcs.create_log_metric.timeout,
|
381
379
|
metadata: metadata,
|
382
380
|
retry_policy: @config.rpcs.create_log_metric.retry_policy
|
383
|
-
|
381
|
+
|
382
|
+
options.apply_defaults timeout: @config.timeout,
|
383
|
+
metadata: @config.metadata,
|
384
384
|
retry_policy: @config.retry_policy
|
385
385
|
|
386
386
|
@metrics_service_stub.call_rpc :create_log_metric, request, options: options do |response, operation|
|
@@ -454,7 +454,9 @@ module Google
|
|
454
454
|
options.apply_defaults timeout: @config.rpcs.update_log_metric.timeout,
|
455
455
|
metadata: metadata,
|
456
456
|
retry_policy: @config.rpcs.update_log_metric.retry_policy
|
457
|
-
|
457
|
+
|
458
|
+
options.apply_defaults timeout: @config.timeout,
|
459
|
+
metadata: @config.metadata,
|
458
460
|
retry_policy: @config.retry_policy
|
459
461
|
|
460
462
|
@metrics_service_stub.call_rpc :update_log_metric, request, options: options do |response, operation|
|
@@ -522,7 +524,9 @@ module Google
|
|
522
524
|
options.apply_defaults timeout: @config.rpcs.delete_log_metric.timeout,
|
523
525
|
metadata: metadata,
|
524
526
|
retry_policy: @config.rpcs.delete_log_metric.retry_policy
|
525
|
-
|
527
|
+
|
528
|
+
options.apply_defaults timeout: @config.timeout,
|
529
|
+
metadata: @config.metadata,
|
526
530
|
retry_policy: @config.retry_policy
|
527
531
|
|
528
532
|
@metrics_service_stub.call_rpc :delete_log_metric, request, options: options do |response, operation|
|
@@ -546,22 +550,21 @@ module Google
|
|
546
550
|
# Configuration can be applied globally to all clients, or to a single client
|
547
551
|
# on construction.
|
548
552
|
#
|
549
|
-
#
|
550
|
-
#
|
551
|
-
#
|
552
|
-
# to 20 seconds,
|
553
|
-
#
|
554
|
-
#
|
555
|
-
#
|
556
|
-
#
|
557
|
-
#
|
558
|
-
#
|
559
|
-
#
|
560
|
-
#
|
561
|
-
#
|
562
|
-
#
|
563
|
-
#
|
564
|
-
# end
|
553
|
+
# @example
|
554
|
+
#
|
555
|
+
# # Modify the global config, setting the timeout for
|
556
|
+
# # list_log_metrics to 20 seconds,
|
557
|
+
# # and all remaining timeouts to 10 seconds.
|
558
|
+
# ::Google::Cloud::Logging::V2::MetricsService::Client.configure do |config|
|
559
|
+
# config.timeout = 10.0
|
560
|
+
# config.rpcs.list_log_metrics.timeout = 20.0
|
561
|
+
# end
|
562
|
+
#
|
563
|
+
# # Apply the above configuration only to a new client.
|
564
|
+
# client = ::Google::Cloud::Logging::V2::MetricsService::Client.new do |config|
|
565
|
+
# config.timeout = 10.0
|
566
|
+
# config.rpcs.list_log_metrics.timeout = 20.0
|
567
|
+
# end
|
565
568
|
#
|
566
569
|
# @!attribute [rw] endpoint
|
567
570
|
# The hostname or hostname:port of the service endpoint.
|
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.5.
|
4
|
+
version: 0.5.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-08-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|
@@ -16,7 +16,7 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '0.
|
19
|
+
version: '0.7'
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
22
|
version: 2.a
|
@@ -26,7 +26,7 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: '0.
|
29
|
+
version: '0.7'
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 2.a
|