google-cloud-logging-v2 0.5.0 → 0.5.4

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: 529fac43945e1da1f05ec4487298e8ef7f26e2a37f36553d820dcec3b7d1e967
4
- data.tar.gz: d96b6420f4338ab3da4ccc2bdd1c68fadd6cd25f36893ec53378358be486d0cd
3
+ metadata.gz: 100efd7dd5eabf59b7be3d362b4fb650ff5f3acb2a423ad66a484cdff734aa12
4
+ data.tar.gz: cea243fe82a40c90294c23c63f807f06d4e05e949c92337b95f581747d28a402
5
5
  SHA512:
6
- metadata.gz: 88d9805bdaf591df9800f74081be59da9fa8e45ebfc4ee11ab96f40bba04e0254a4f1257301ae2bcdcab1fa3a02de9312afd634a9af55267a228354dc27c9117
7
- data.tar.gz: 861cb07dd84636645731b62d7cfd911df098e3fc20b546c57f0fbb36a6ea32bada56bd85bb4c52adba7b2100774493b57b163383863705274f44b782b277c134
6
+ metadata.gz: 1fd33e72a1dfe2b3b2e7d6c2f65b66d0289b2ec21dc41e6726a4c7548f5e9874a34feb6c213fdcab530ee08adc885601771294a8372ba3ef0e666dc4d627d0fa
7
+ data.tar.gz: c8d72fadefdccc73befabc249a3af7b3cbfc8fcf354ba0bb08bd4831001811153ff15bfa62308e9fc1dd09a17cf0049e0d9c5ef4421457914a6a11d8cead9386
data/AUTHENTICATION.md CHANGED
@@ -66,11 +66,11 @@ The environment variables that google-cloud-logging-v2
66
66
  checks for credentials are configured on the service Credentials class (such as
67
67
  {::Google::Cloud::Logging::V2::ConfigService::Credentials}):
68
68
 
69
- 1. `LOGGING_CREDENTIALS` - Path to JSON file, or JSON contents
70
- 2. `LOGGING_KEYFILE` - Path to JSON file, or JSON contents
71
- 3. `GOOGLE_CLOUD_CREDENTIALS` - Path to JSON file, or JSON contents
72
- 4. `GOOGLE_CLOUD_KEYFILE` - Path to JSON file, or JSON contents
73
- 5. `GOOGLE_APPLICATION_CREDENTIALS` - Path to JSON file
69
+ * `LOGGING_CREDENTIALS` - Path to JSON file, or JSON contents
70
+ * `LOGGING_KEYFILE` - Path to JSON file, or JSON contents
71
+ * `GOOGLE_CLOUD_CREDENTIALS` - Path to JSON file, or JSON contents
72
+ * `GOOGLE_CLOUD_KEYFILE` - Path to JSON file, or JSON contents
73
+ * `GOOGLE_APPLICATION_CREDENTIALS` - Path to JSON file
74
74
 
75
75
  ```ruby
76
76
  require "google/cloud/logging/v2"
@@ -82,8 +82,8 @@ client = ::Google::Cloud::Logging::V2::ConfigService::Client.new
82
82
 
83
83
  ### Configuration
84
84
 
85
- The **Credentials JSON** can be configured instead of placing them in
86
- environment variables. Either on an individual client initialization:
85
+ The path to the **Credentials JSON** file can be configured instead of storing
86
+ it in an environment variable. Either on an individual client initialization:
87
87
 
88
88
  ```ruby
89
89
  require "google/cloud/logging/v2"
@@ -93,7 +93,7 @@ client = ::Google::Cloud::Logging::V2::ConfigService::Client.new do |config|
93
93
  end
94
94
  ```
95
95
 
96
- Or configured globally for all clients:
96
+ Or globally for all clients:
97
97
 
98
98
  ```ruby
99
99
  require "google/cloud/logging/v2"
data/README.md CHANGED
@@ -33,7 +33,7 @@ In order to use this library, you first need to go through the following steps:
33
33
  require "google/cloud/logging/v2"
34
34
 
35
35
  client = ::Google::Cloud::Logging::V2::ConfigService::Client.new
36
- request = my_create_request
36
+ request = ::Google::Cloud::Logging::V2::ListBucketsRequest.new # (request fields as keyword arguments...)
37
37
  response = client.list_buckets request
38
38
  ```
39
39
 
@@ -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
- # ## Example
44
+ # @example
45
45
  #
46
- # To modify the configuration for all ConfigService clients:
47
- #
48
- # ::Google::Cloud::Logging::V2::ConfigService::Client.configure do |config|
49
- # config.timeout = 10.0
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]
@@ -67,52 +66,34 @@ module Google
67
66
 
68
67
  default_config.rpcs.list_sinks.timeout = 60.0
69
68
  default_config.rpcs.list_sinks.retry_policy = {
70
- initial_delay: 0.1,
71
- max_delay: 60.0,
72
- multiplier: 1.3,
73
- retry_codes: [4, 13, 14]
69
+ initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [4, 13, 14]
74
70
  }
75
71
 
76
72
  default_config.rpcs.get_sink.timeout = 60.0
77
73
  default_config.rpcs.get_sink.retry_policy = {
78
- initial_delay: 0.1,
79
- max_delay: 60.0,
80
- multiplier: 1.3,
81
- retry_codes: [4, 13, 14]
74
+ initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [4, 13, 14]
82
75
  }
83
76
 
84
77
  default_config.rpcs.create_sink.timeout = 120.0
85
78
 
86
79
  default_config.rpcs.update_sink.timeout = 60.0
87
80
  default_config.rpcs.update_sink.retry_policy = {
88
- initial_delay: 0.1,
89
- max_delay: 60.0,
90
- multiplier: 1.3,
91
- retry_codes: [4, 13, 14]
81
+ initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [4, 13, 14]
92
82
  }
93
83
 
94
84
  default_config.rpcs.delete_sink.timeout = 60.0
95
85
  default_config.rpcs.delete_sink.retry_policy = {
96
- initial_delay: 0.1,
97
- max_delay: 60.0,
98
- multiplier: 1.3,
99
- retry_codes: [4, 13, 14]
86
+ initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [4, 13, 14]
100
87
  }
101
88
 
102
89
  default_config.rpcs.list_exclusions.timeout = 60.0
103
90
  default_config.rpcs.list_exclusions.retry_policy = {
104
- initial_delay: 0.1,
105
- max_delay: 60.0,
106
- multiplier: 1.3,
107
- retry_codes: [4, 13, 14]
91
+ initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [4, 13, 14]
108
92
  }
109
93
 
110
94
  default_config.rpcs.get_exclusion.timeout = 60.0
111
95
  default_config.rpcs.get_exclusion.retry_policy = {
112
- initial_delay: 0.1,
113
- max_delay: 60.0,
114
- multiplier: 1.3,
115
- retry_codes: [4, 13, 14]
96
+ initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [4, 13, 14]
116
97
  }
117
98
 
118
99
  default_config.rpcs.create_exclusion.timeout = 120.0
@@ -121,10 +102,7 @@ module Google
121
102
 
122
103
  default_config.rpcs.delete_exclusion.timeout = 60.0
123
104
  default_config.rpcs.delete_exclusion.retry_policy = {
124
- initial_delay: 0.1,
125
- max_delay: 60.0,
126
- multiplier: 1.3,
127
- retry_codes: [4, 13, 14]
105
+ initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [4, 13, 14]
128
106
  }
129
107
 
130
108
  default_config
@@ -156,19 +134,15 @@ module Google
156
134
  ##
157
135
  # Create a new ConfigService client object.
158
136
  #
159
- # ## Examples
160
- #
161
- # To create a new ConfigService client with the default
162
- # configuration:
137
+ # @example
163
138
  #
164
- # client = ::Google::Cloud::Logging::V2::ConfigService::Client.new
139
+ # # Create a client using the default configuration
140
+ # client = ::Google::Cloud::Logging::V2::ConfigService::Client.new
165
141
  #
166
- # To create a new ConfigService client with a custom
167
- # configuration:
168
- #
169
- # client = ::Google::Cloud::Logging::V2::ConfigService::Client.new do |config|
170
- # config.timeout = 10.0
171
- # 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
172
146
  #
173
147
  # @yield [config] Configure the ConfigService client.
174
148
  # @yieldparam config [Client::Configuration]
@@ -188,14 +162,13 @@ module Google
188
162
 
189
163
  # Create credentials
190
164
  credentials = @config.credentials
191
- # Use self-signed JWT if the scope and endpoint are unchanged from default,
165
+ # Use self-signed JWT if the endpoint is unchanged from default,
192
166
  # but only if the default endpoint does not have a region prefix.
193
- enable_self_signed_jwt = @config.scope == Client.configure.scope &&
194
- @config.endpoint == Client.configure.endpoint &&
167
+ enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
195
168
  !@config.endpoint.split(".").first.include?("-")
196
169
  credentials ||= Credentials.default scope: @config.scope,
197
170
  enable_self_signed_jwt: enable_self_signed_jwt
198
- if credentials.is_a?(String) || credentials.is_a?(Hash)
171
+ if credentials.is_a?(::String) || credentials.is_a?(::Hash)
199
172
  credentials = Credentials.new credentials, scope: @config.scope
200
173
  end
201
174
  @quota_project_id = @config.quota_project
@@ -285,7 +258,9 @@ module Google
285
258
  options.apply_defaults timeout: @config.rpcs.list_buckets.timeout,
286
259
  metadata: metadata,
287
260
  retry_policy: @config.rpcs.list_buckets.retry_policy
288
- options.apply_defaults metadata: @config.metadata,
261
+
262
+ options.apply_defaults timeout: @config.timeout,
263
+ metadata: @config.metadata,
289
264
  retry_policy: @config.retry_policy
290
265
 
291
266
  @config_service_stub.call_rpc :list_buckets, request, options: options do |response, operation|
@@ -360,7 +335,9 @@ module Google
360
335
  options.apply_defaults timeout: @config.rpcs.get_bucket.timeout,
361
336
  metadata: metadata,
362
337
  retry_policy: @config.rpcs.get_bucket.retry_policy
363
- options.apply_defaults metadata: @config.metadata,
338
+
339
+ options.apply_defaults timeout: @config.timeout,
340
+ metadata: @config.metadata,
364
341
  retry_policy: @config.retry_policy
365
342
 
366
343
  @config_service_stub.call_rpc :get_bucket, request, options: options do |response, operation|
@@ -439,7 +416,9 @@ module Google
439
416
  options.apply_defaults timeout: @config.rpcs.create_bucket.timeout,
440
417
  metadata: metadata,
441
418
  retry_policy: @config.rpcs.create_bucket.retry_policy
442
- options.apply_defaults metadata: @config.metadata,
419
+
420
+ options.apply_defaults timeout: @config.timeout,
421
+ metadata: @config.metadata,
443
422
  retry_policy: @config.retry_policy
444
423
 
445
424
  @config_service_stub.call_rpc :create_bucket, request, options: options do |response, operation|
@@ -535,7 +514,9 @@ module Google
535
514
  options.apply_defaults timeout: @config.rpcs.update_bucket.timeout,
536
515
  metadata: metadata,
537
516
  retry_policy: @config.rpcs.update_bucket.retry_policy
538
- options.apply_defaults metadata: @config.metadata,
517
+
518
+ options.apply_defaults timeout: @config.timeout,
519
+ metadata: @config.metadata,
539
520
  retry_policy: @config.retry_policy
540
521
 
541
522
  @config_service_stub.call_rpc :update_bucket, request, options: options do |response, operation|
@@ -612,7 +593,9 @@ module Google
612
593
  options.apply_defaults timeout: @config.rpcs.delete_bucket.timeout,
613
594
  metadata: metadata,
614
595
  retry_policy: @config.rpcs.delete_bucket.retry_policy
615
- options.apply_defaults metadata: @config.metadata,
596
+
597
+ options.apply_defaults timeout: @config.timeout,
598
+ metadata: @config.metadata,
616
599
  retry_policy: @config.retry_policy
617
600
 
618
601
  @config_service_stub.call_rpc :delete_bucket, request, options: options do |response, operation|
@@ -687,7 +670,9 @@ module Google
687
670
  options.apply_defaults timeout: @config.rpcs.undelete_bucket.timeout,
688
671
  metadata: metadata,
689
672
  retry_policy: @config.rpcs.undelete_bucket.retry_policy
690
- options.apply_defaults metadata: @config.metadata,
673
+
674
+ options.apply_defaults timeout: @config.timeout,
675
+ metadata: @config.metadata,
691
676
  retry_policy: @config.retry_policy
692
677
 
693
678
  @config_service_stub.call_rpc :undelete_bucket, request, options: options do |response, operation|
@@ -764,7 +749,9 @@ module Google
764
749
  options.apply_defaults timeout: @config.rpcs.list_views.timeout,
765
750
  metadata: metadata,
766
751
  retry_policy: @config.rpcs.list_views.retry_policy
767
- options.apply_defaults metadata: @config.metadata,
752
+
753
+ options.apply_defaults timeout: @config.timeout,
754
+ metadata: @config.metadata,
768
755
  retry_policy: @config.retry_policy
769
756
 
770
757
  @config_service_stub.call_rpc :list_views, request, options: options do |response, operation|
@@ -836,7 +823,9 @@ module Google
836
823
  options.apply_defaults timeout: @config.rpcs.get_view.timeout,
837
824
  metadata: metadata,
838
825
  retry_policy: @config.rpcs.get_view.retry_policy
839
- options.apply_defaults metadata: @config.metadata,
826
+
827
+ options.apply_defaults timeout: @config.timeout,
828
+ metadata: @config.metadata,
840
829
  retry_policy: @config.retry_policy
841
830
 
842
831
  @config_service_stub.call_rpc :get_view, request, options: options do |response, operation|
@@ -912,7 +901,9 @@ module Google
912
901
  options.apply_defaults timeout: @config.rpcs.create_view.timeout,
913
902
  metadata: metadata,
914
903
  retry_policy: @config.rpcs.create_view.retry_policy
915
- options.apply_defaults metadata: @config.metadata,
904
+
905
+ options.apply_defaults timeout: @config.timeout,
906
+ metadata: @config.metadata,
916
907
  retry_policy: @config.retry_policy
917
908
 
918
909
  @config_service_stub.call_rpc :create_view, request, options: options do |response, operation|
@@ -995,7 +986,9 @@ module Google
995
986
  options.apply_defaults timeout: @config.rpcs.update_view.timeout,
996
987
  metadata: metadata,
997
988
  retry_policy: @config.rpcs.update_view.retry_policy
998
- options.apply_defaults metadata: @config.metadata,
989
+
990
+ options.apply_defaults timeout: @config.timeout,
991
+ metadata: @config.metadata,
999
992
  retry_policy: @config.retry_policy
1000
993
 
1001
994
  @config_service_stub.call_rpc :update_view, request, options: options do |response, operation|
@@ -1066,7 +1059,9 @@ module Google
1066
1059
  options.apply_defaults timeout: @config.rpcs.delete_view.timeout,
1067
1060
  metadata: metadata,
1068
1061
  retry_policy: @config.rpcs.delete_view.retry_policy
1069
- options.apply_defaults metadata: @config.metadata,
1062
+
1063
+ options.apply_defaults timeout: @config.timeout,
1064
+ metadata: @config.metadata,
1070
1065
  retry_policy: @config.retry_policy
1071
1066
 
1072
1067
  @config_service_stub.call_rpc :delete_view, request, options: options do |response, operation|
@@ -1146,7 +1141,9 @@ module Google
1146
1141
  options.apply_defaults timeout: @config.rpcs.list_sinks.timeout,
1147
1142
  metadata: metadata,
1148
1143
  retry_policy: @config.rpcs.list_sinks.retry_policy
1149
- options.apply_defaults metadata: @config.metadata,
1144
+
1145
+ options.apply_defaults timeout: @config.timeout,
1146
+ metadata: @config.metadata,
1150
1147
  retry_policy: @config.retry_policy
1151
1148
 
1152
1149
  @config_service_stub.call_rpc :list_sinks, request, options: options do |response, operation|
@@ -1220,7 +1217,9 @@ module Google
1220
1217
  options.apply_defaults timeout: @config.rpcs.get_sink.timeout,
1221
1218
  metadata: metadata,
1222
1219
  retry_policy: @config.rpcs.get_sink.retry_policy
1223
- options.apply_defaults metadata: @config.metadata,
1220
+
1221
+ options.apply_defaults timeout: @config.timeout,
1222
+ metadata: @config.metadata,
1224
1223
  retry_policy: @config.retry_policy
1225
1224
 
1226
1225
  @config_service_stub.call_rpc :get_sink, request, options: options do |response, operation|
@@ -1311,7 +1310,9 @@ module Google
1311
1310
  options.apply_defaults timeout: @config.rpcs.create_sink.timeout,
1312
1311
  metadata: metadata,
1313
1312
  retry_policy: @config.rpcs.create_sink.retry_policy
1314
- options.apply_defaults metadata: @config.metadata,
1313
+
1314
+ options.apply_defaults timeout: @config.timeout,
1315
+ metadata: @config.metadata,
1315
1316
  retry_policy: @config.retry_policy
1316
1317
 
1317
1318
  @config_service_stub.call_rpc :create_sink, request, options: options do |response, operation|
@@ -1419,7 +1420,9 @@ module Google
1419
1420
  options.apply_defaults timeout: @config.rpcs.update_sink.timeout,
1420
1421
  metadata: metadata,
1421
1422
  retry_policy: @config.rpcs.update_sink.retry_policy
1422
- options.apply_defaults metadata: @config.metadata,
1423
+
1424
+ options.apply_defaults timeout: @config.timeout,
1425
+ metadata: @config.metadata,
1423
1426
  retry_policy: @config.retry_policy
1424
1427
 
1425
1428
  @config_service_stub.call_rpc :update_sink, request, options: options do |response, operation|
@@ -1494,7 +1497,9 @@ module Google
1494
1497
  options.apply_defaults timeout: @config.rpcs.delete_sink.timeout,
1495
1498
  metadata: metadata,
1496
1499
  retry_policy: @config.rpcs.delete_sink.retry_policy
1497
- options.apply_defaults metadata: @config.metadata,
1500
+
1501
+ options.apply_defaults timeout: @config.timeout,
1502
+ metadata: @config.metadata,
1498
1503
  retry_policy: @config.retry_policy
1499
1504
 
1500
1505
  @config_service_stub.call_rpc :delete_sink, request, options: options do |response, operation|
@@ -1574,7 +1579,9 @@ module Google
1574
1579
  options.apply_defaults timeout: @config.rpcs.list_exclusions.timeout,
1575
1580
  metadata: metadata,
1576
1581
  retry_policy: @config.rpcs.list_exclusions.retry_policy
1577
- options.apply_defaults metadata: @config.metadata,
1582
+
1583
+ options.apply_defaults timeout: @config.timeout,
1584
+ metadata: @config.metadata,
1578
1585
  retry_policy: @config.retry_policy
1579
1586
 
1580
1587
  @config_service_stub.call_rpc :list_exclusions, request, options: options do |response, operation|
@@ -1648,7 +1655,9 @@ module Google
1648
1655
  options.apply_defaults timeout: @config.rpcs.get_exclusion.timeout,
1649
1656
  metadata: metadata,
1650
1657
  retry_policy: @config.rpcs.get_exclusion.retry_policy
1651
- options.apply_defaults metadata: @config.metadata,
1658
+
1659
+ options.apply_defaults timeout: @config.timeout,
1660
+ metadata: @config.metadata,
1652
1661
  retry_policy: @config.retry_policy
1653
1662
 
1654
1663
  @config_service_stub.call_rpc :get_exclusion, request, options: options do |response, operation|
@@ -1726,7 +1735,9 @@ module Google
1726
1735
  options.apply_defaults timeout: @config.rpcs.create_exclusion.timeout,
1727
1736
  metadata: metadata,
1728
1737
  retry_policy: @config.rpcs.create_exclusion.retry_policy
1729
- options.apply_defaults metadata: @config.metadata,
1738
+
1739
+ options.apply_defaults timeout: @config.timeout,
1740
+ metadata: @config.metadata,
1730
1741
  retry_policy: @config.retry_policy
1731
1742
 
1732
1743
  @config_service_stub.call_rpc :create_exclusion, request, options: options do |response, operation|
@@ -1810,7 +1821,9 @@ module Google
1810
1821
  options.apply_defaults timeout: @config.rpcs.update_exclusion.timeout,
1811
1822
  metadata: metadata,
1812
1823
  retry_policy: @config.rpcs.update_exclusion.retry_policy
1813
- options.apply_defaults metadata: @config.metadata,
1824
+
1825
+ options.apply_defaults timeout: @config.timeout,
1826
+ metadata: @config.metadata,
1814
1827
  retry_policy: @config.retry_policy
1815
1828
 
1816
1829
  @config_service_stub.call_rpc :update_exclusion, request, options: options do |response, operation|
@@ -1883,7 +1896,9 @@ module Google
1883
1896
  options.apply_defaults timeout: @config.rpcs.delete_exclusion.timeout,
1884
1897
  metadata: metadata,
1885
1898
  retry_policy: @config.rpcs.delete_exclusion.retry_policy
1886
- options.apply_defaults metadata: @config.metadata,
1899
+
1900
+ options.apply_defaults timeout: @config.timeout,
1901
+ metadata: @config.metadata,
1887
1902
  retry_policy: @config.retry_policy
1888
1903
 
1889
1904
  @config_service_stub.call_rpc :delete_exclusion, request, options: options do |response, operation|
@@ -1968,7 +1983,9 @@ module Google
1968
1983
  options.apply_defaults timeout: @config.rpcs.get_cmek_settings.timeout,
1969
1984
  metadata: metadata,
1970
1985
  retry_policy: @config.rpcs.get_cmek_settings.retry_policy
1971
- options.apply_defaults metadata: @config.metadata,
1986
+
1987
+ options.apply_defaults timeout: @config.timeout,
1988
+ metadata: @config.metadata,
1972
1989
  retry_policy: @config.retry_policy
1973
1990
 
1974
1991
  @config_service_stub.call_rpc :get_cmek_settings, request, options: options do |response, operation|
@@ -2073,7 +2090,9 @@ module Google
2073
2090
  options.apply_defaults timeout: @config.rpcs.update_cmek_settings.timeout,
2074
2091
  metadata: metadata,
2075
2092
  retry_policy: @config.rpcs.update_cmek_settings.retry_policy
2076
- options.apply_defaults metadata: @config.metadata,
2093
+
2094
+ options.apply_defaults timeout: @config.timeout,
2095
+ metadata: @config.metadata,
2077
2096
  retry_policy: @config.retry_policy
2078
2097
 
2079
2098
  @config_service_stub.call_rpc :update_cmek_settings, request, options: options do |response, operation|
@@ -2097,22 +2116,21 @@ module Google
2097
2116
  # Configuration can be applied globally to all clients, or to a single client
2098
2117
  # on construction.
2099
2118
  #
2100
- # # Examples
2101
- #
2102
- # To modify the global config, setting the timeout for list_buckets
2103
- # to 20 seconds, and all remaining timeouts to 10 seconds:
2104
- #
2105
- # ::Google::Cloud::Logging::V2::ConfigService::Client.configure do |config|
2106
- # config.timeout = 10.0
2107
- # config.rpcs.list_buckets.timeout = 20.0
2108
- # end
2109
- #
2110
- # To apply the above configuration only to a new client:
2111
- #
2112
- # client = ::Google::Cloud::Logging::V2::ConfigService::Client.new do |config|
2113
- # config.timeout = 10.0
2114
- # config.rpcs.list_buckets.timeout = 20.0
2115
- # 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
2116
2134
  #
2117
2135
  # @!attribute [rw] endpoint
2118
2136
  # The hostname or hostname:port of the service endpoint.