google-cloud-monitoring-v3 0.4.2 → 0.4.3

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: 7dec6d95d8bd4486aa11ae3ec9dff1d78bec82ab8e9a3cf05f9b46ad5d64dba2
4
- data.tar.gz: 1dbef9169213f4c1f5c359eed7303ea8c1bb7c28415be568dfde9b7a2f2ca817
3
+ metadata.gz: decec2701bb1638e5484dc1b0c01717854aa885a3e9e925d18abbe2e8d87b2bc
4
+ data.tar.gz: f1d7c511d2571ca589aa5a67a75b3cd76f61719fa7d2de4b1ae3f9f1704d9152
5
5
  SHA512:
6
- metadata.gz: 6bd4ed90760607805d6156f95224fd7552d3817826095f45fb252af63990417baa6f64f9dd82969d043093c08a70c1cdcc169f7e0c65145ab30ed869d6a885b9
7
- data.tar.gz: 0c2a694792313db4ed25401ff15c914e61ce1ea8f153b932741e57bc3c96381e40b8c522635c192fa069172d80975af2f071d74086064c5907851d5028ae2887
6
+ metadata.gz: 2287692ac4638b348c01aae711aaf567eb8f60f975d6e480a4c6b4d75a6f7c6820ac63ba969e8af538688408a1c4c2d87b144e85b5d83bb2cdb859f960bc714f
7
+ data.tar.gz: 960ef65d07a93dfd639c5d8fba4107fc93f4a4f03b34522731145f7e000af9f4643bdac7e1219995b697cbeece7fe5bad0867a1ab886cfcb8c74d2f16890fcd5
@@ -49,13 +49,12 @@ module Google
49
49
  # See {::Google::Cloud::Monitoring::V3::AlertPolicyService::Client::Configuration}
50
50
  # for a description of the configuration fields.
51
51
  #
52
- # ## Example
52
+ # @example
53
53
  #
54
- # To modify the configuration for all AlertPolicyService clients:
55
- #
56
- # ::Google::Cloud::Monitoring::V3::AlertPolicyService::Client.configure do |config|
57
- # config.timeout = 10.0
58
- # end
54
+ # # Modify the configuration for all AlertPolicyService clients
55
+ # ::Google::Cloud::Monitoring::V3::AlertPolicyService::Client.configure do |config|
56
+ # config.timeout = 10.0
57
+ # end
59
58
  #
60
59
  # @yield [config] Configure the Client client.
61
60
  # @yieldparam config [Client::Configuration]
@@ -121,19 +120,15 @@ module Google
121
120
  ##
122
121
  # Create a new AlertPolicyService client object.
123
122
  #
124
- # ## Examples
125
- #
126
- # To create a new AlertPolicyService client with the default
127
- # configuration:
128
- #
129
- # client = ::Google::Cloud::Monitoring::V3::AlertPolicyService::Client.new
123
+ # @example
130
124
  #
131
- # To create a new AlertPolicyService client with a custom
132
- # configuration:
125
+ # # Create a client using the default configuration
126
+ # client = ::Google::Cloud::Monitoring::V3::AlertPolicyService::Client.new
133
127
  #
134
- # client = ::Google::Cloud::Monitoring::V3::AlertPolicyService::Client.new do |config|
135
- # config.timeout = 10.0
136
- # end
128
+ # # Create a client using a custom configuration
129
+ # client = ::Google::Cloud::Monitoring::V3::AlertPolicyService::Client.new do |config|
130
+ # config.timeout = 10.0
131
+ # end
137
132
  #
138
133
  # @yield [config] Configure the AlertPolicyService client.
139
134
  # @yieldparam config [Client::Configuration]
@@ -153,10 +148,9 @@ module Google
153
148
 
154
149
  # Create credentials
155
150
  credentials = @config.credentials
156
- # Use self-signed JWT if the scope and endpoint are unchanged from default,
151
+ # Use self-signed JWT if the endpoint is unchanged from default,
157
152
  # but only if the default endpoint does not have a region prefix.
158
- enable_self_signed_jwt = @config.scope == Client.configure.scope &&
159
- @config.endpoint == Client.configure.endpoint &&
153
+ enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
160
154
  !@config.endpoint.split(".").first.include?("-")
161
155
  credentials ||= Credentials.default scope: @config.scope,
162
156
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -259,7 +253,9 @@ module Google
259
253
  options.apply_defaults timeout: @config.rpcs.list_alert_policies.timeout,
260
254
  metadata: metadata,
261
255
  retry_policy: @config.rpcs.list_alert_policies.retry_policy
262
- options.apply_defaults metadata: @config.metadata,
256
+
257
+ options.apply_defaults timeout: @config.timeout,
258
+ metadata: @config.metadata,
263
259
  retry_policy: @config.retry_policy
264
260
 
265
261
  @alert_policy_service_stub.call_rpc :list_alert_policies, request, options: options do |response, operation|
@@ -328,7 +324,9 @@ module Google
328
324
  options.apply_defaults timeout: @config.rpcs.get_alert_policy.timeout,
329
325
  metadata: metadata,
330
326
  retry_policy: @config.rpcs.get_alert_policy.retry_policy
331
- options.apply_defaults metadata: @config.metadata,
327
+
328
+ options.apply_defaults timeout: @config.timeout,
329
+ metadata: @config.metadata,
332
330
  retry_policy: @config.retry_policy
333
331
 
334
332
  @alert_policy_service_stub.call_rpc :get_alert_policy, request, options: options do |response, operation|
@@ -408,7 +406,9 @@ module Google
408
406
  options.apply_defaults timeout: @config.rpcs.create_alert_policy.timeout,
409
407
  metadata: metadata,
410
408
  retry_policy: @config.rpcs.create_alert_policy.retry_policy
411
- options.apply_defaults metadata: @config.metadata,
409
+
410
+ options.apply_defaults timeout: @config.timeout,
411
+ metadata: @config.metadata,
412
412
  retry_policy: @config.retry_policy
413
413
 
414
414
  @alert_policy_service_stub.call_rpc :create_alert_policy, request, options: options do |response, operation|
@@ -478,7 +478,9 @@ module Google
478
478
  options.apply_defaults timeout: @config.rpcs.delete_alert_policy.timeout,
479
479
  metadata: metadata,
480
480
  retry_policy: @config.rpcs.delete_alert_policy.retry_policy
481
- options.apply_defaults metadata: @config.metadata,
481
+
482
+ options.apply_defaults timeout: @config.timeout,
483
+ metadata: @config.metadata,
482
484
  retry_policy: @config.retry_policy
483
485
 
484
486
  @alert_policy_service_stub.call_rpc :delete_alert_policy, request, options: options do |response, operation|
@@ -572,7 +574,9 @@ module Google
572
574
  options.apply_defaults timeout: @config.rpcs.update_alert_policy.timeout,
573
575
  metadata: metadata,
574
576
  retry_policy: @config.rpcs.update_alert_policy.retry_policy
575
- options.apply_defaults metadata: @config.metadata,
577
+
578
+ options.apply_defaults timeout: @config.timeout,
579
+ metadata: @config.metadata,
576
580
  retry_policy: @config.retry_policy
577
581
 
578
582
  @alert_policy_service_stub.call_rpc :update_alert_policy, request, options: options do |response, operation|
@@ -596,22 +600,21 @@ module Google
596
600
  # Configuration can be applied globally to all clients, or to a single client
597
601
  # on construction.
598
602
  #
599
- # # Examples
600
- #
601
- # To modify the global config, setting the timeout for list_alert_policies
602
- # to 20 seconds, and all remaining timeouts to 10 seconds:
603
- #
604
- # ::Google::Cloud::Monitoring::V3::AlertPolicyService::Client.configure do |config|
605
- # config.timeout = 10.0
606
- # config.rpcs.list_alert_policies.timeout = 20.0
607
- # end
608
- #
609
- # To apply the above configuration only to a new client:
610
- #
611
- # client = ::Google::Cloud::Monitoring::V3::AlertPolicyService::Client.new do |config|
612
- # config.timeout = 10.0
613
- # config.rpcs.list_alert_policies.timeout = 20.0
614
- # end
603
+ # @example
604
+ #
605
+ # # Modify the global config, setting the timeout for
606
+ # # list_alert_policies to 20 seconds,
607
+ # # and all remaining timeouts to 10 seconds.
608
+ # ::Google::Cloud::Monitoring::V3::AlertPolicyService::Client.configure do |config|
609
+ # config.timeout = 10.0
610
+ # config.rpcs.list_alert_policies.timeout = 20.0
611
+ # end
612
+ #
613
+ # # Apply the above configuration only to a new client.
614
+ # client = ::Google::Cloud::Monitoring::V3::AlertPolicyService::Client.new do |config|
615
+ # config.timeout = 10.0
616
+ # config.rpcs.list_alert_policies.timeout = 20.0
617
+ # end
615
618
  #
616
619
  # @!attribute [rw] endpoint
617
620
  # The hostname or hostname:port of the service endpoint.
@@ -52,13 +52,12 @@ module Google
52
52
  # See {::Google::Cloud::Monitoring::V3::GroupService::Client::Configuration}
53
53
  # for a description of the configuration fields.
54
54
  #
55
- # ## Example
55
+ # @example
56
56
  #
57
- # To modify the configuration for all GroupService clients:
58
- #
59
- # ::Google::Cloud::Monitoring::V3::GroupService::Client.configure do |config|
60
- # config.timeout = 10.0
61
- # end
57
+ # # Modify the configuration for all GroupService clients
58
+ # ::Google::Cloud::Monitoring::V3::GroupService::Client.configure do |config|
59
+ # config.timeout = 10.0
60
+ # end
62
61
  #
63
62
  # @yield [config] Configure the Client client.
64
63
  # @yieldparam config [Client::Configuration]
@@ -132,19 +131,15 @@ module Google
132
131
  ##
133
132
  # Create a new GroupService client object.
134
133
  #
135
- # ## Examples
136
- #
137
- # To create a new GroupService client with the default
138
- # configuration:
134
+ # @example
139
135
  #
140
- # client = ::Google::Cloud::Monitoring::V3::GroupService::Client.new
136
+ # # Create a client using the default configuration
137
+ # client = ::Google::Cloud::Monitoring::V3::GroupService::Client.new
141
138
  #
142
- # To create a new GroupService client with a custom
143
- # configuration:
144
- #
145
- # client = ::Google::Cloud::Monitoring::V3::GroupService::Client.new do |config|
146
- # config.timeout = 10.0
147
- # end
139
+ # # Create a client using a custom configuration
140
+ # client = ::Google::Cloud::Monitoring::V3::GroupService::Client.new do |config|
141
+ # config.timeout = 10.0
142
+ # end
148
143
  #
149
144
  # @yield [config] Configure the GroupService client.
150
145
  # @yieldparam config [Client::Configuration]
@@ -164,10 +159,9 @@ module Google
164
159
 
165
160
  # Create credentials
166
161
  credentials = @config.credentials
167
- # Use self-signed JWT if the scope and endpoint are unchanged from default,
162
+ # Use self-signed JWT if the endpoint is unchanged from default,
168
163
  # but only if the default endpoint does not have a region prefix.
169
- enable_self_signed_jwt = @config.scope == Client.configure.scope &&
170
- @config.endpoint == Client.configure.endpoint &&
164
+ enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
171
165
  !@config.endpoint.split(".").first.include?("-")
172
166
  credentials ||= Credentials.default scope: @config.scope,
173
167
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -275,7 +269,9 @@ module Google
275
269
  options.apply_defaults timeout: @config.rpcs.list_groups.timeout,
276
270
  metadata: metadata,
277
271
  retry_policy: @config.rpcs.list_groups.retry_policy
278
- options.apply_defaults metadata: @config.metadata,
272
+
273
+ options.apply_defaults timeout: @config.timeout,
274
+ metadata: @config.metadata,
279
275
  retry_policy: @config.retry_policy
280
276
 
281
277
  @group_service_stub.call_rpc :list_groups, request, options: options do |response, operation|
@@ -344,7 +340,9 @@ module Google
344
340
  options.apply_defaults timeout: @config.rpcs.get_group.timeout,
345
341
  metadata: metadata,
346
342
  retry_policy: @config.rpcs.get_group.retry_policy
347
- options.apply_defaults metadata: @config.metadata,
343
+
344
+ options.apply_defaults timeout: @config.timeout,
345
+ metadata: @config.metadata,
348
346
  retry_policy: @config.retry_policy
349
347
 
350
348
  @group_service_stub.call_rpc :get_group, request, options: options do |response, operation|
@@ -417,7 +415,9 @@ module Google
417
415
  options.apply_defaults timeout: @config.rpcs.create_group.timeout,
418
416
  metadata: metadata,
419
417
  retry_policy: @config.rpcs.create_group.retry_policy
420
- options.apply_defaults metadata: @config.metadata,
418
+
419
+ options.apply_defaults timeout: @config.timeout,
420
+ metadata: @config.metadata,
421
421
  retry_policy: @config.retry_policy
422
422
 
423
423
  @group_service_stub.call_rpc :create_group, request, options: options do |response, operation|
@@ -487,7 +487,9 @@ module Google
487
487
  options.apply_defaults timeout: @config.rpcs.update_group.timeout,
488
488
  metadata: metadata,
489
489
  retry_policy: @config.rpcs.update_group.retry_policy
490
- options.apply_defaults metadata: @config.metadata,
490
+
491
+ options.apply_defaults timeout: @config.timeout,
492
+ metadata: @config.metadata,
491
493
  retry_policy: @config.retry_policy
492
494
 
493
495
  @group_service_stub.call_rpc :update_group, request, options: options do |response, operation|
@@ -559,7 +561,9 @@ module Google
559
561
  options.apply_defaults timeout: @config.rpcs.delete_group.timeout,
560
562
  metadata: metadata,
561
563
  retry_policy: @config.rpcs.delete_group.retry_policy
562
- options.apply_defaults metadata: @config.metadata,
564
+
565
+ options.apply_defaults timeout: @config.timeout,
566
+ metadata: @config.metadata,
563
567
  retry_policy: @config.retry_policy
564
568
 
565
569
  @group_service_stub.call_rpc :delete_group, request, options: options do |response, operation|
@@ -647,7 +651,9 @@ module Google
647
651
  options.apply_defaults timeout: @config.rpcs.list_group_members.timeout,
648
652
  metadata: metadata,
649
653
  retry_policy: @config.rpcs.list_group_members.retry_policy
650
- options.apply_defaults metadata: @config.metadata,
654
+
655
+ options.apply_defaults timeout: @config.timeout,
656
+ metadata: @config.metadata,
651
657
  retry_policy: @config.retry_policy
652
658
 
653
659
  @group_service_stub.call_rpc :list_group_members, request, options: options do |response, operation|
@@ -672,22 +678,21 @@ module Google
672
678
  # Configuration can be applied globally to all clients, or to a single client
673
679
  # on construction.
674
680
  #
675
- # # Examples
676
- #
677
- # To modify the global config, setting the timeout for list_groups
678
- # to 20 seconds, and all remaining timeouts to 10 seconds:
679
- #
680
- # ::Google::Cloud::Monitoring::V3::GroupService::Client.configure do |config|
681
- # config.timeout = 10.0
682
- # config.rpcs.list_groups.timeout = 20.0
683
- # end
684
- #
685
- # To apply the above configuration only to a new client:
686
- #
687
- # client = ::Google::Cloud::Monitoring::V3::GroupService::Client.new do |config|
688
- # config.timeout = 10.0
689
- # config.rpcs.list_groups.timeout = 20.0
690
- # end
681
+ # @example
682
+ #
683
+ # # Modify the global config, setting the timeout for
684
+ # # list_groups to 20 seconds,
685
+ # # and all remaining timeouts to 10 seconds.
686
+ # ::Google::Cloud::Monitoring::V3::GroupService::Client.configure do |config|
687
+ # config.timeout = 10.0
688
+ # config.rpcs.list_groups.timeout = 20.0
689
+ # end
690
+ #
691
+ # # Apply the above configuration only to a new client.
692
+ # client = ::Google::Cloud::Monitoring::V3::GroupService::Client.new do |config|
693
+ # config.timeout = 10.0
694
+ # config.rpcs.list_groups.timeout = 20.0
695
+ # end
691
696
  #
692
697
  # @!attribute [rw] endpoint
693
698
  # The hostname or hostname:port of the service endpoint.
@@ -42,13 +42,12 @@ module Google
42
42
  # See {::Google::Cloud::Monitoring::V3::MetricService::Client::Configuration}
43
43
  # for a description of the configuration fields.
44
44
  #
45
- # ## Example
45
+ # @example
46
46
  #
47
- # To modify the configuration for all MetricService clients:
48
- #
49
- # ::Google::Cloud::Monitoring::V3::MetricService::Client.configure do |config|
50
- # config.timeout = 10.0
51
- # end
47
+ # # Modify the configuration for all MetricService clients
48
+ # ::Google::Cloud::Monitoring::V3::MetricService::Client.configure do |config|
49
+ # config.timeout = 10.0
50
+ # end
52
51
  #
53
52
  # @yield [config] Configure the Client client.
54
53
  # @yieldparam config [Client::Configuration]
@@ -129,19 +128,15 @@ module Google
129
128
  ##
130
129
  # Create a new MetricService client object.
131
130
  #
132
- # ## Examples
133
- #
134
- # To create a new MetricService client with the default
135
- # configuration:
131
+ # @example
136
132
  #
137
- # client = ::Google::Cloud::Monitoring::V3::MetricService::Client.new
133
+ # # Create a client using the default configuration
134
+ # client = ::Google::Cloud::Monitoring::V3::MetricService::Client.new
138
135
  #
139
- # To create a new MetricService client with a custom
140
- # configuration:
141
- #
142
- # client = ::Google::Cloud::Monitoring::V3::MetricService::Client.new do |config|
143
- # config.timeout = 10.0
144
- # end
136
+ # # Create a client using a custom configuration
137
+ # client = ::Google::Cloud::Monitoring::V3::MetricService::Client.new do |config|
138
+ # config.timeout = 10.0
139
+ # end
145
140
  #
146
141
  # @yield [config] Configure the MetricService client.
147
142
  # @yieldparam config [Client::Configuration]
@@ -161,10 +156,9 @@ module Google
161
156
 
162
157
  # Create credentials
163
158
  credentials = @config.credentials
164
- # Use self-signed JWT if the scope and endpoint are unchanged from default,
159
+ # Use self-signed JWT if the endpoint is unchanged from default,
165
160
  # but only if the default endpoint does not have a region prefix.
166
- enable_self_signed_jwt = @config.scope == Client.configure.scope &&
167
- @config.endpoint == Client.configure.endpoint &&
161
+ enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
168
162
  !@config.endpoint.split(".").first.include?("-")
169
163
  credentials ||= Credentials.default scope: @config.scope,
170
164
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -255,7 +249,9 @@ module Google
255
249
  options.apply_defaults timeout: @config.rpcs.list_monitored_resource_descriptors.timeout,
256
250
  metadata: metadata,
257
251
  retry_policy: @config.rpcs.list_monitored_resource_descriptors.retry_policy
258
- options.apply_defaults metadata: @config.metadata,
252
+
253
+ options.apply_defaults timeout: @config.timeout,
254
+ metadata: @config.metadata,
259
255
  retry_policy: @config.retry_policy
260
256
 
261
257
  @metric_service_stub.call_rpc :list_monitored_resource_descriptors, request, options: options do |response, operation|
@@ -327,7 +323,9 @@ module Google
327
323
  options.apply_defaults timeout: @config.rpcs.get_monitored_resource_descriptor.timeout,
328
324
  metadata: metadata,
329
325
  retry_policy: @config.rpcs.get_monitored_resource_descriptor.retry_policy
330
- options.apply_defaults metadata: @config.metadata,
326
+
327
+ options.apply_defaults timeout: @config.timeout,
328
+ metadata: @config.metadata,
331
329
  retry_policy: @config.retry_policy
332
330
 
333
331
  @metric_service_stub.call_rpc :get_monitored_resource_descriptor, request, options: options do |response, operation|
@@ -410,7 +408,9 @@ module Google
410
408
  options.apply_defaults timeout: @config.rpcs.list_metric_descriptors.timeout,
411
409
  metadata: metadata,
412
410
  retry_policy: @config.rpcs.list_metric_descriptors.retry_policy
413
- options.apply_defaults metadata: @config.metadata,
411
+
412
+ options.apply_defaults timeout: @config.timeout,
413
+ metadata: @config.metadata,
414
414
  retry_policy: @config.retry_policy
415
415
 
416
416
  @metric_service_stub.call_rpc :list_metric_descriptors, request, options: options do |response, operation|
@@ -482,7 +482,9 @@ module Google
482
482
  options.apply_defaults timeout: @config.rpcs.get_metric_descriptor.timeout,
483
483
  metadata: metadata,
484
484
  retry_policy: @config.rpcs.get_metric_descriptor.retry_policy
485
- options.apply_defaults metadata: @config.metadata,
485
+
486
+ options.apply_defaults timeout: @config.timeout,
487
+ metadata: @config.metadata,
486
488
  retry_policy: @config.retry_policy
487
489
 
488
490
  @metric_service_stub.call_rpc :get_metric_descriptor, request, options: options do |response, operation|
@@ -555,7 +557,9 @@ module Google
555
557
  options.apply_defaults timeout: @config.rpcs.create_metric_descriptor.timeout,
556
558
  metadata: metadata,
557
559
  retry_policy: @config.rpcs.create_metric_descriptor.retry_policy
558
- options.apply_defaults metadata: @config.metadata,
560
+
561
+ options.apply_defaults timeout: @config.timeout,
562
+ metadata: @config.metadata,
559
563
  retry_policy: @config.retry_policy
560
564
 
561
565
  @metric_service_stub.call_rpc :create_metric_descriptor, request, options: options do |response, operation|
@@ -628,7 +632,9 @@ module Google
628
632
  options.apply_defaults timeout: @config.rpcs.delete_metric_descriptor.timeout,
629
633
  metadata: metadata,
630
634
  retry_policy: @config.rpcs.delete_metric_descriptor.retry_policy
631
- options.apply_defaults metadata: @config.metadata,
635
+
636
+ options.apply_defaults timeout: @config.timeout,
637
+ metadata: @config.metadata,
632
638
  retry_policy: @config.retry_policy
633
639
 
634
640
  @metric_service_stub.call_rpc :delete_metric_descriptor, request, options: options do |response, operation|
@@ -735,7 +741,9 @@ module Google
735
741
  options.apply_defaults timeout: @config.rpcs.list_time_series.timeout,
736
742
  metadata: metadata,
737
743
  retry_policy: @config.rpcs.list_time_series.retry_policy
738
- options.apply_defaults metadata: @config.metadata,
744
+
745
+ options.apply_defaults timeout: @config.timeout,
746
+ metadata: @config.metadata,
739
747
  retry_policy: @config.retry_policy
740
748
 
741
749
  @metric_service_stub.call_rpc :list_time_series, request, options: options do |response, operation|
@@ -815,7 +823,9 @@ module Google
815
823
  options.apply_defaults timeout: @config.rpcs.create_time_series.timeout,
816
824
  metadata: metadata,
817
825
  retry_policy: @config.rpcs.create_time_series.retry_policy
818
- options.apply_defaults metadata: @config.metadata,
826
+
827
+ options.apply_defaults timeout: @config.timeout,
828
+ metadata: @config.metadata,
819
829
  retry_policy: @config.retry_policy
820
830
 
821
831
  @metric_service_stub.call_rpc :create_time_series, request, options: options do |response, operation|
@@ -839,22 +849,21 @@ module Google
839
849
  # Configuration can be applied globally to all clients, or to a single client
840
850
  # on construction.
841
851
  #
842
- # # Examples
843
- #
844
- # To modify the global config, setting the timeout for list_monitored_resource_descriptors
845
- # to 20 seconds, and all remaining timeouts to 10 seconds:
846
- #
847
- # ::Google::Cloud::Monitoring::V3::MetricService::Client.configure do |config|
848
- # config.timeout = 10.0
849
- # config.rpcs.list_monitored_resource_descriptors.timeout = 20.0
850
- # end
851
- #
852
- # To apply the above configuration only to a new client:
853
- #
854
- # client = ::Google::Cloud::Monitoring::V3::MetricService::Client.new do |config|
855
- # config.timeout = 10.0
856
- # config.rpcs.list_monitored_resource_descriptors.timeout = 20.0
857
- # end
852
+ # @example
853
+ #
854
+ # # Modify the global config, setting the timeout for
855
+ # # list_monitored_resource_descriptors to 20 seconds,
856
+ # # and all remaining timeouts to 10 seconds.
857
+ # ::Google::Cloud::Monitoring::V3::MetricService::Client.configure do |config|
858
+ # config.timeout = 10.0
859
+ # config.rpcs.list_monitored_resource_descriptors.timeout = 20.0
860
+ # end
861
+ #
862
+ # # Apply the above configuration only to a new client.
863
+ # client = ::Google::Cloud::Monitoring::V3::MetricService::Client.new do |config|
864
+ # config.timeout = 10.0
865
+ # config.rpcs.list_monitored_resource_descriptors.timeout = 20.0
866
+ # end
858
867
  #
859
868
  # @!attribute [rw] endpoint
860
869
  # The hostname or hostname:port of the service endpoint.
@@ -42,13 +42,12 @@ module Google
42
42
  # See {::Google::Cloud::Monitoring::V3::NotificationChannelService::Client::Configuration}
43
43
  # for a description of the configuration fields.
44
44
  #
45
- # ## Example
45
+ # @example
46
46
  #
47
- # To modify the configuration for all NotificationChannelService clients:
48
- #
49
- # ::Google::Cloud::Monitoring::V3::NotificationChannelService::Client.configure do |config|
50
- # config.timeout = 10.0
51
- # end
47
+ # # Modify the configuration for all NotificationChannelService clients
48
+ # ::Google::Cloud::Monitoring::V3::NotificationChannelService::Client.configure do |config|
49
+ # config.timeout = 10.0
50
+ # end
52
51
  #
53
52
  # @yield [config] Configure the Client client.
54
53
  # @yieldparam config [Client::Configuration]
@@ -136,19 +135,15 @@ module Google
136
135
  ##
137
136
  # Create a new NotificationChannelService client object.
138
137
  #
139
- # ## Examples
140
- #
141
- # To create a new NotificationChannelService client with the default
142
- # configuration:
143
- #
144
- # client = ::Google::Cloud::Monitoring::V3::NotificationChannelService::Client.new
138
+ # @example
145
139
  #
146
- # To create a new NotificationChannelService client with a custom
147
- # configuration:
140
+ # # Create a client using the default configuration
141
+ # client = ::Google::Cloud::Monitoring::V3::NotificationChannelService::Client.new
148
142
  #
149
- # client = ::Google::Cloud::Monitoring::V3::NotificationChannelService::Client.new do |config|
150
- # config.timeout = 10.0
151
- # end
143
+ # # Create a client using a custom configuration
144
+ # client = ::Google::Cloud::Monitoring::V3::NotificationChannelService::Client.new do |config|
145
+ # config.timeout = 10.0
146
+ # end
152
147
  #
153
148
  # @yield [config] Configure the NotificationChannelService client.
154
149
  # @yieldparam config [Client::Configuration]
@@ -168,10 +163,9 @@ module Google
168
163
 
169
164
  # Create credentials
170
165
  credentials = @config.credentials
171
- # Use self-signed JWT if the scope and endpoint are unchanged from default,
166
+ # Use self-signed JWT if the endpoint is unchanged from default,
172
167
  # but only if the default endpoint does not have a region prefix.
173
- enable_self_signed_jwt = @config.scope == Client.configure.scope &&
174
- @config.endpoint == Client.configure.endpoint &&
168
+ enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
175
169
  !@config.endpoint.split(".").first.include?("-")
176
170
  credentials ||= Credentials.default scope: @config.scope,
177
171
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -264,7 +258,9 @@ module Google
264
258
  options.apply_defaults timeout: @config.rpcs.list_notification_channel_descriptors.timeout,
265
259
  metadata: metadata,
266
260
  retry_policy: @config.rpcs.list_notification_channel_descriptors.retry_policy
267
- options.apply_defaults metadata: @config.metadata,
261
+
262
+ options.apply_defaults timeout: @config.timeout,
263
+ metadata: @config.metadata,
268
264
  retry_policy: @config.retry_policy
269
265
 
270
266
  @notification_channel_service_stub.call_rpc :list_notification_channel_descriptors, request, options: options do |response, operation|
@@ -334,7 +330,9 @@ module Google
334
330
  options.apply_defaults timeout: @config.rpcs.get_notification_channel_descriptor.timeout,
335
331
  metadata: metadata,
336
332
  retry_policy: @config.rpcs.get_notification_channel_descriptor.retry_policy
337
- options.apply_defaults metadata: @config.metadata,
333
+
334
+ options.apply_defaults timeout: @config.timeout,
335
+ metadata: @config.metadata,
338
336
  retry_policy: @config.retry_policy
339
337
 
340
338
  @notification_channel_service_stub.call_rpc :get_notification_channel_descriptor, request, options: options do |response, operation|
@@ -430,7 +428,9 @@ module Google
430
428
  options.apply_defaults timeout: @config.rpcs.list_notification_channels.timeout,
431
429
  metadata: metadata,
432
430
  retry_policy: @config.rpcs.list_notification_channels.retry_policy
433
- options.apply_defaults metadata: @config.metadata,
431
+
432
+ options.apply_defaults timeout: @config.timeout,
433
+ metadata: @config.metadata,
434
434
  retry_policy: @config.retry_policy
435
435
 
436
436
  @notification_channel_service_stub.call_rpc :list_notification_channels, request, options: options do |response, operation|
@@ -503,7 +503,9 @@ module Google
503
503
  options.apply_defaults timeout: @config.rpcs.get_notification_channel.timeout,
504
504
  metadata: metadata,
505
505
  retry_policy: @config.rpcs.get_notification_channel.retry_policy
506
- options.apply_defaults metadata: @config.metadata,
506
+
507
+ options.apply_defaults timeout: @config.timeout,
508
+ metadata: @config.metadata,
507
509
  retry_policy: @config.retry_policy
508
510
 
509
511
  @notification_channel_service_stub.call_rpc :get_notification_channel, request, options: options do |response, operation|
@@ -579,7 +581,9 @@ module Google
579
581
  options.apply_defaults timeout: @config.rpcs.create_notification_channel.timeout,
580
582
  metadata: metadata,
581
583
  retry_policy: @config.rpcs.create_notification_channel.retry_policy
582
- options.apply_defaults metadata: @config.metadata,
584
+
585
+ options.apply_defaults timeout: @config.timeout,
586
+ metadata: @config.metadata,
583
587
  retry_policy: @config.retry_policy
584
588
 
585
589
  @notification_channel_service_stub.call_rpc :create_notification_channel, request, options: options do |response, operation|
@@ -651,7 +655,9 @@ module Google
651
655
  options.apply_defaults timeout: @config.rpcs.update_notification_channel.timeout,
652
656
  metadata: metadata,
653
657
  retry_policy: @config.rpcs.update_notification_channel.retry_policy
654
- options.apply_defaults metadata: @config.metadata,
658
+
659
+ options.apply_defaults timeout: @config.timeout,
660
+ metadata: @config.metadata,
655
661
  retry_policy: @config.retry_policy
656
662
 
657
663
  @notification_channel_service_stub.call_rpc :update_notification_channel, request, options: options do |response, operation|
@@ -724,7 +730,9 @@ module Google
724
730
  options.apply_defaults timeout: @config.rpcs.delete_notification_channel.timeout,
725
731
  metadata: metadata,
726
732
  retry_policy: @config.rpcs.delete_notification_channel.retry_policy
727
- options.apply_defaults metadata: @config.metadata,
733
+
734
+ options.apply_defaults timeout: @config.timeout,
735
+ metadata: @config.metadata,
728
736
  retry_policy: @config.retry_policy
729
737
 
730
738
  @notification_channel_service_stub.call_rpc :delete_notification_channel, request, options: options do |response, operation|
@@ -791,7 +799,9 @@ module Google
791
799
  options.apply_defaults timeout: @config.rpcs.send_notification_channel_verification_code.timeout,
792
800
  metadata: metadata,
793
801
  retry_policy: @config.rpcs.send_notification_channel_verification_code.retry_policy
794
- options.apply_defaults metadata: @config.metadata,
802
+
803
+ options.apply_defaults timeout: @config.timeout,
804
+ metadata: @config.metadata,
795
805
  retry_policy: @config.retry_policy
796
806
 
797
807
  @notification_channel_service_stub.call_rpc :send_notification_channel_verification_code, request, options: options do |response, operation|
@@ -889,7 +899,9 @@ module Google
889
899
  options.apply_defaults timeout: @config.rpcs.get_notification_channel_verification_code.timeout,
890
900
  metadata: metadata,
891
901
  retry_policy: @config.rpcs.get_notification_channel_verification_code.retry_policy
892
- options.apply_defaults metadata: @config.metadata,
902
+
903
+ options.apply_defaults timeout: @config.timeout,
904
+ metadata: @config.metadata,
893
905
  retry_policy: @config.retry_policy
894
906
 
895
907
  @notification_channel_service_stub.call_rpc :get_notification_channel_verification_code, request, options: options do |response, operation|
@@ -965,7 +977,9 @@ module Google
965
977
  options.apply_defaults timeout: @config.rpcs.verify_notification_channel.timeout,
966
978
  metadata: metadata,
967
979
  retry_policy: @config.rpcs.verify_notification_channel.retry_policy
968
- options.apply_defaults metadata: @config.metadata,
980
+
981
+ options.apply_defaults timeout: @config.timeout,
982
+ metadata: @config.metadata,
969
983
  retry_policy: @config.retry_policy
970
984
 
971
985
  @notification_channel_service_stub.call_rpc :verify_notification_channel, request, options: options do |response, operation|
@@ -989,22 +1003,21 @@ module Google
989
1003
  # Configuration can be applied globally to all clients, or to a single client
990
1004
  # on construction.
991
1005
  #
992
- # # Examples
993
- #
994
- # To modify the global config, setting the timeout for list_notification_channel_descriptors
995
- # to 20 seconds, and all remaining timeouts to 10 seconds:
996
- #
997
- # ::Google::Cloud::Monitoring::V3::NotificationChannelService::Client.configure do |config|
998
- # config.timeout = 10.0
999
- # config.rpcs.list_notification_channel_descriptors.timeout = 20.0
1000
- # end
1001
- #
1002
- # To apply the above configuration only to a new client:
1003
- #
1004
- # client = ::Google::Cloud::Monitoring::V3::NotificationChannelService::Client.new do |config|
1005
- # config.timeout = 10.0
1006
- # config.rpcs.list_notification_channel_descriptors.timeout = 20.0
1007
- # end
1006
+ # @example
1007
+ #
1008
+ # # Modify the global config, setting the timeout for
1009
+ # # list_notification_channel_descriptors to 20 seconds,
1010
+ # # and all remaining timeouts to 10 seconds.
1011
+ # ::Google::Cloud::Monitoring::V3::NotificationChannelService::Client.configure do |config|
1012
+ # config.timeout = 10.0
1013
+ # config.rpcs.list_notification_channel_descriptors.timeout = 20.0
1014
+ # end
1015
+ #
1016
+ # # Apply the above configuration only to a new client.
1017
+ # client = ::Google::Cloud::Monitoring::V3::NotificationChannelService::Client.new do |config|
1018
+ # config.timeout = 10.0
1019
+ # config.rpcs.list_notification_channel_descriptors.timeout = 20.0
1020
+ # end
1008
1021
  #
1009
1022
  # @!attribute [rw] endpoint
1010
1023
  # The hostname or hostname:port of the service endpoint.
@@ -41,13 +41,12 @@ module Google
41
41
  # See {::Google::Cloud::Monitoring::V3::QueryService::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 QueryService clients:
47
- #
48
- # ::Google::Cloud::Monitoring::V3::QueryService::Client.configure do |config|
49
- # config.timeout = 10.0
50
- # end
46
+ # # Modify the configuration for all QueryService clients
47
+ # ::Google::Cloud::Monitoring::V3::QueryService::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]
@@ -94,19 +93,15 @@ module Google
94
93
  ##
95
94
  # Create a new QueryService client object.
96
95
  #
97
- # ## Examples
98
- #
99
- # To create a new QueryService client with the default
100
- # configuration:
96
+ # @example
101
97
  #
102
- # client = ::Google::Cloud::Monitoring::V3::QueryService::Client.new
98
+ # # Create a client using the default configuration
99
+ # client = ::Google::Cloud::Monitoring::V3::QueryService::Client.new
103
100
  #
104
- # To create a new QueryService client with a custom
105
- # configuration:
106
- #
107
- # client = ::Google::Cloud::Monitoring::V3::QueryService::Client.new do |config|
108
- # config.timeout = 10.0
109
- # end
101
+ # # Create a client using a custom configuration
102
+ # client = ::Google::Cloud::Monitoring::V3::QueryService::Client.new do |config|
103
+ # config.timeout = 10.0
104
+ # end
110
105
  #
111
106
  # @yield [config] Configure the QueryService client.
112
107
  # @yieldparam config [Client::Configuration]
@@ -126,10 +121,9 @@ module Google
126
121
 
127
122
  # Create credentials
128
123
  credentials = @config.credentials
129
- # Use self-signed JWT if the scope and endpoint are unchanged from default,
124
+ # Use self-signed JWT if the endpoint is unchanged from default,
130
125
  # but only if the default endpoint does not have a region prefix.
131
- enable_self_signed_jwt = @config.scope == Client.configure.scope &&
132
- @config.endpoint == Client.configure.endpoint &&
126
+ enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
133
127
  !@config.endpoint.split(".").first.include?("-")
134
128
  credentials ||= Credentials.default scope: @config.scope,
135
129
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -217,7 +211,9 @@ module Google
217
211
  options.apply_defaults timeout: @config.rpcs.query_time_series.timeout,
218
212
  metadata: metadata,
219
213
  retry_policy: @config.rpcs.query_time_series.retry_policy
220
- options.apply_defaults metadata: @config.metadata,
214
+
215
+ options.apply_defaults timeout: @config.timeout,
216
+ metadata: @config.metadata,
221
217
  retry_policy: @config.retry_policy
222
218
 
223
219
  @query_service_stub.call_rpc :query_time_series, request, options: options do |response, operation|
@@ -242,22 +238,21 @@ module Google
242
238
  # Configuration can be applied globally to all clients, or to a single client
243
239
  # on construction.
244
240
  #
245
- # # Examples
246
- #
247
- # To modify the global config, setting the timeout for query_time_series
248
- # to 20 seconds, and all remaining timeouts to 10 seconds:
249
- #
250
- # ::Google::Cloud::Monitoring::V3::QueryService::Client.configure do |config|
251
- # config.timeout = 10.0
252
- # config.rpcs.query_time_series.timeout = 20.0
253
- # end
254
- #
255
- # To apply the above configuration only to a new client:
256
- #
257
- # client = ::Google::Cloud::Monitoring::V3::QueryService::Client.new do |config|
258
- # config.timeout = 10.0
259
- # config.rpcs.query_time_series.timeout = 20.0
260
- # end
241
+ # @example
242
+ #
243
+ # # Modify the global config, setting the timeout for
244
+ # # query_time_series to 20 seconds,
245
+ # # and all remaining timeouts to 10 seconds.
246
+ # ::Google::Cloud::Monitoring::V3::QueryService::Client.configure do |config|
247
+ # config.timeout = 10.0
248
+ # config.rpcs.query_time_series.timeout = 20.0
249
+ # end
250
+ #
251
+ # # Apply the above configuration only to a new client.
252
+ # client = ::Google::Cloud::Monitoring::V3::QueryService::Client.new do |config|
253
+ # config.timeout = 10.0
254
+ # config.rpcs.query_time_series.timeout = 20.0
255
+ # end
261
256
  #
262
257
  # @!attribute [rw] endpoint
263
258
  # The hostname or hostname:port of the service endpoint.
@@ -44,13 +44,12 @@ module Google
44
44
  # See {::Google::Cloud::Monitoring::V3::ServiceMonitoringService::Client::Configuration}
45
45
  # for a description of the configuration fields.
46
46
  #
47
- # ## Example
47
+ # @example
48
48
  #
49
- # To modify the configuration for all ServiceMonitoringService clients:
50
- #
51
- # ::Google::Cloud::Monitoring::V3::ServiceMonitoringService::Client.configure do |config|
52
- # config.timeout = 10.0
53
- # end
49
+ # # Modify the configuration for all ServiceMonitoringService clients
50
+ # ::Google::Cloud::Monitoring::V3::ServiceMonitoringService::Client.configure do |config|
51
+ # config.timeout = 10.0
52
+ # end
54
53
  #
55
54
  # @yield [config] Configure the Client client.
56
55
  # @yieldparam config [Client::Configuration]
@@ -135,19 +134,15 @@ module Google
135
134
  ##
136
135
  # Create a new ServiceMonitoringService client object.
137
136
  #
138
- # ## Examples
139
- #
140
- # To create a new ServiceMonitoringService client with the default
141
- # configuration:
142
- #
143
- # client = ::Google::Cloud::Monitoring::V3::ServiceMonitoringService::Client.new
137
+ # @example
144
138
  #
145
- # To create a new ServiceMonitoringService client with a custom
146
- # configuration:
139
+ # # Create a client using the default configuration
140
+ # client = ::Google::Cloud::Monitoring::V3::ServiceMonitoringService::Client.new
147
141
  #
148
- # client = ::Google::Cloud::Monitoring::V3::ServiceMonitoringService::Client.new do |config|
149
- # config.timeout = 10.0
150
- # end
142
+ # # Create a client using a custom configuration
143
+ # client = ::Google::Cloud::Monitoring::V3::ServiceMonitoringService::Client.new do |config|
144
+ # config.timeout = 10.0
145
+ # end
151
146
  #
152
147
  # @yield [config] Configure the ServiceMonitoringService 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 scope and endpoint are unchanged from default,
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.scope == Client.configure.scope &&
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
@@ -253,7 +247,9 @@ module Google
253
247
  options.apply_defaults timeout: @config.rpcs.create_service.timeout,
254
248
  metadata: metadata,
255
249
  retry_policy: @config.rpcs.create_service.retry_policy
256
- options.apply_defaults metadata: @config.metadata,
250
+
251
+ options.apply_defaults timeout: @config.timeout,
252
+ metadata: @config.metadata,
257
253
  retry_policy: @config.retry_policy
258
254
 
259
255
  @service_monitoring_service_stub.call_rpc :create_service, request, options: options do |response, operation|
@@ -321,7 +317,9 @@ module Google
321
317
  options.apply_defaults timeout: @config.rpcs.get_service.timeout,
322
318
  metadata: metadata,
323
319
  retry_policy: @config.rpcs.get_service.retry_policy
324
- options.apply_defaults metadata: @config.metadata,
320
+
321
+ options.apply_defaults timeout: @config.timeout,
322
+ metadata: @config.metadata,
325
323
  retry_policy: @config.retry_policy
326
324
 
327
325
  @service_monitoring_service_stub.call_rpc :get_service, request, options: options do |response, operation|
@@ -418,7 +416,9 @@ module Google
418
416
  options.apply_defaults timeout: @config.rpcs.list_services.timeout,
419
417
  metadata: metadata,
420
418
  retry_policy: @config.rpcs.list_services.retry_policy
421
- options.apply_defaults metadata: @config.metadata,
419
+
420
+ options.apply_defaults timeout: @config.timeout,
421
+ metadata: @config.metadata,
422
422
  retry_policy: @config.retry_policy
423
423
 
424
424
  @service_monitoring_service_stub.call_rpc :list_services, request, options: options do |response, operation|
@@ -488,7 +488,9 @@ module Google
488
488
  options.apply_defaults timeout: @config.rpcs.update_service.timeout,
489
489
  metadata: metadata,
490
490
  retry_policy: @config.rpcs.update_service.retry_policy
491
- options.apply_defaults metadata: @config.metadata,
491
+
492
+ options.apply_defaults timeout: @config.timeout,
493
+ metadata: @config.metadata,
492
494
  retry_policy: @config.retry_policy
493
495
 
494
496
  @service_monitoring_service_stub.call_rpc :update_service, request, options: options do |response, operation|
@@ -556,7 +558,9 @@ module Google
556
558
  options.apply_defaults timeout: @config.rpcs.delete_service.timeout,
557
559
  metadata: metadata,
558
560
  retry_policy: @config.rpcs.delete_service.retry_policy
559
- options.apply_defaults metadata: @config.metadata,
561
+
562
+ options.apply_defaults timeout: @config.timeout,
563
+ metadata: @config.metadata,
560
564
  retry_policy: @config.retry_policy
561
565
 
562
566
  @service_monitoring_service_stub.call_rpc :delete_service, request, options: options do |response, operation|
@@ -632,7 +636,9 @@ module Google
632
636
  options.apply_defaults timeout: @config.rpcs.create_service_level_objective.timeout,
633
637
  metadata: metadata,
634
638
  retry_policy: @config.rpcs.create_service_level_objective.retry_policy
635
- options.apply_defaults metadata: @config.metadata,
639
+
640
+ options.apply_defaults timeout: @config.timeout,
641
+ metadata: @config.metadata,
636
642
  retry_policy: @config.retry_policy
637
643
 
638
644
  @service_monitoring_service_stub.call_rpc :create_service_level_objective, request, options: options do |response, operation|
@@ -705,7 +711,9 @@ module Google
705
711
  options.apply_defaults timeout: @config.rpcs.get_service_level_objective.timeout,
706
712
  metadata: metadata,
707
713
  retry_policy: @config.rpcs.get_service_level_objective.retry_policy
708
- options.apply_defaults metadata: @config.metadata,
714
+
715
+ options.apply_defaults timeout: @config.timeout,
716
+ metadata: @config.metadata,
709
717
  retry_policy: @config.retry_policy
710
718
 
711
719
  @service_monitoring_service_stub.call_rpc :get_service_level_objective, request, options: options do |response, operation|
@@ -789,7 +797,9 @@ module Google
789
797
  options.apply_defaults timeout: @config.rpcs.list_service_level_objectives.timeout,
790
798
  metadata: metadata,
791
799
  retry_policy: @config.rpcs.list_service_level_objectives.retry_policy
792
- options.apply_defaults metadata: @config.metadata,
800
+
801
+ options.apply_defaults timeout: @config.timeout,
802
+ metadata: @config.metadata,
793
803
  retry_policy: @config.retry_policy
794
804
 
795
805
  @service_monitoring_service_stub.call_rpc :list_service_level_objectives, request, options: options do |response, operation|
@@ -859,7 +869,9 @@ module Google
859
869
  options.apply_defaults timeout: @config.rpcs.update_service_level_objective.timeout,
860
870
  metadata: metadata,
861
871
  retry_policy: @config.rpcs.update_service_level_objective.retry_policy
862
- options.apply_defaults metadata: @config.metadata,
872
+
873
+ options.apply_defaults timeout: @config.timeout,
874
+ metadata: @config.metadata,
863
875
  retry_policy: @config.retry_policy
864
876
 
865
877
  @service_monitoring_service_stub.call_rpc :update_service_level_objective, request, options: options do |response, operation|
@@ -927,7 +939,9 @@ module Google
927
939
  options.apply_defaults timeout: @config.rpcs.delete_service_level_objective.timeout,
928
940
  metadata: metadata,
929
941
  retry_policy: @config.rpcs.delete_service_level_objective.retry_policy
930
- options.apply_defaults metadata: @config.metadata,
942
+
943
+ options.apply_defaults timeout: @config.timeout,
944
+ metadata: @config.metadata,
931
945
  retry_policy: @config.retry_policy
932
946
 
933
947
  @service_monitoring_service_stub.call_rpc :delete_service_level_objective, request, options: options do |response, operation|
@@ -951,22 +965,21 @@ module Google
951
965
  # Configuration can be applied globally to all clients, or to a single client
952
966
  # on construction.
953
967
  #
954
- # # Examples
955
- #
956
- # To modify the global config, setting the timeout for create_service
957
- # to 20 seconds, and all remaining timeouts to 10 seconds:
958
- #
959
- # ::Google::Cloud::Monitoring::V3::ServiceMonitoringService::Client.configure do |config|
960
- # config.timeout = 10.0
961
- # config.rpcs.create_service.timeout = 20.0
962
- # end
963
- #
964
- # To apply the above configuration only to a new client:
965
- #
966
- # client = ::Google::Cloud::Monitoring::V3::ServiceMonitoringService::Client.new do |config|
967
- # config.timeout = 10.0
968
- # config.rpcs.create_service.timeout = 20.0
969
- # end
968
+ # @example
969
+ #
970
+ # # Modify the global config, setting the timeout for
971
+ # # create_service to 20 seconds,
972
+ # # and all remaining timeouts to 10 seconds.
973
+ # ::Google::Cloud::Monitoring::V3::ServiceMonitoringService::Client.configure do |config|
974
+ # config.timeout = 10.0
975
+ # config.rpcs.create_service.timeout = 20.0
976
+ # end
977
+ #
978
+ # # Apply the above configuration only to a new client.
979
+ # client = ::Google::Cloud::Monitoring::V3::ServiceMonitoringService::Client.new do |config|
980
+ # config.timeout = 10.0
981
+ # config.rpcs.create_service.timeout = 20.0
982
+ # end
970
983
  #
971
984
  # @!attribute [rw] endpoint
972
985
  # The hostname or hostname:port of the service endpoint.
@@ -48,13 +48,12 @@ module Google
48
48
  # See {::Google::Cloud::Monitoring::V3::UptimeCheckService::Client::Configuration}
49
49
  # for a description of the configuration fields.
50
50
  #
51
- # ## Example
51
+ # @example
52
52
  #
53
- # To modify the configuration for all UptimeCheckService clients:
54
- #
55
- # ::Google::Cloud::Monitoring::V3::UptimeCheckService::Client.configure do |config|
56
- # config.timeout = 10.0
57
- # end
53
+ # # Modify the configuration for all UptimeCheckService clients
54
+ # ::Google::Cloud::Monitoring::V3::UptimeCheckService::Client.configure do |config|
55
+ # config.timeout = 10.0
56
+ # end
58
57
  #
59
58
  # @yield [config] Configure the Client client.
60
59
  # @yieldparam config [Client::Configuration]
@@ -125,19 +124,15 @@ module Google
125
124
  ##
126
125
  # Create a new UptimeCheckService client object.
127
126
  #
128
- # ## Examples
129
- #
130
- # To create a new UptimeCheckService client with the default
131
- # configuration:
127
+ # @example
132
128
  #
133
- # client = ::Google::Cloud::Monitoring::V3::UptimeCheckService::Client.new
129
+ # # Create a client using the default configuration
130
+ # client = ::Google::Cloud::Monitoring::V3::UptimeCheckService::Client.new
134
131
  #
135
- # To create a new UptimeCheckService client with a custom
136
- # configuration:
137
- #
138
- # client = ::Google::Cloud::Monitoring::V3::UptimeCheckService::Client.new do |config|
139
- # config.timeout = 10.0
140
- # end
132
+ # # Create a client using a custom configuration
133
+ # client = ::Google::Cloud::Monitoring::V3::UptimeCheckService::Client.new do |config|
134
+ # config.timeout = 10.0
135
+ # end
141
136
  #
142
137
  # @yield [config] Configure the UptimeCheckService client.
143
138
  # @yieldparam config [Client::Configuration]
@@ -157,10 +152,9 @@ module Google
157
152
 
158
153
  # Create credentials
159
154
  credentials = @config.credentials
160
- # Use self-signed JWT if the scope and endpoint are unchanged from default,
155
+ # Use self-signed JWT if the endpoint is unchanged from default,
161
156
  # but only if the default endpoint does not have a region prefix.
162
- enable_self_signed_jwt = @config.scope == Client.configure.scope &&
163
- @config.endpoint == Client.configure.endpoint &&
157
+ enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
164
158
  !@config.endpoint.split(".").first.include?("-")
165
159
  credentials ||= Credentials.default scope: @config.scope,
166
160
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -248,7 +242,9 @@ module Google
248
242
  options.apply_defaults timeout: @config.rpcs.list_uptime_check_configs.timeout,
249
243
  metadata: metadata,
250
244
  retry_policy: @config.rpcs.list_uptime_check_configs.retry_policy
251
- options.apply_defaults metadata: @config.metadata,
245
+
246
+ options.apply_defaults timeout: @config.timeout,
247
+ metadata: @config.metadata,
252
248
  retry_policy: @config.retry_policy
253
249
 
254
250
  @uptime_check_service_stub.call_rpc :list_uptime_check_configs, request, options: options do |response, operation|
@@ -317,7 +313,9 @@ module Google
317
313
  options.apply_defaults timeout: @config.rpcs.get_uptime_check_config.timeout,
318
314
  metadata: metadata,
319
315
  retry_policy: @config.rpcs.get_uptime_check_config.retry_policy
320
- options.apply_defaults metadata: @config.metadata,
316
+
317
+ options.apply_defaults timeout: @config.timeout,
318
+ metadata: @config.metadata,
321
319
  retry_policy: @config.retry_policy
322
320
 
323
321
  @uptime_check_service_stub.call_rpc :get_uptime_check_config, request, options: options do |response, operation|
@@ -387,7 +385,9 @@ module Google
387
385
  options.apply_defaults timeout: @config.rpcs.create_uptime_check_config.timeout,
388
386
  metadata: metadata,
389
387
  retry_policy: @config.rpcs.create_uptime_check_config.retry_policy
390
- options.apply_defaults metadata: @config.metadata,
388
+
389
+ options.apply_defaults timeout: @config.timeout,
390
+ metadata: @config.metadata,
391
391
  retry_policy: @config.retry_policy
392
392
 
393
393
  @uptime_check_service_stub.call_rpc :create_uptime_check_config, request, options: options do |response, operation|
@@ -471,7 +471,9 @@ module Google
471
471
  options.apply_defaults timeout: @config.rpcs.update_uptime_check_config.timeout,
472
472
  metadata: metadata,
473
473
  retry_policy: @config.rpcs.update_uptime_check_config.retry_policy
474
- options.apply_defaults metadata: @config.metadata,
474
+
475
+ options.apply_defaults timeout: @config.timeout,
476
+ metadata: @config.metadata,
475
477
  retry_policy: @config.retry_policy
476
478
 
477
479
  @uptime_check_service_stub.call_rpc :update_uptime_check_config, request, options: options do |response, operation|
@@ -541,7 +543,9 @@ module Google
541
543
  options.apply_defaults timeout: @config.rpcs.delete_uptime_check_config.timeout,
542
544
  metadata: metadata,
543
545
  retry_policy: @config.rpcs.delete_uptime_check_config.retry_policy
544
- options.apply_defaults metadata: @config.metadata,
546
+
547
+ options.apply_defaults timeout: @config.timeout,
548
+ metadata: @config.metadata,
545
549
  retry_policy: @config.retry_policy
546
550
 
547
551
  @uptime_check_service_stub.call_rpc :delete_uptime_check_config, request, options: options do |response, operation|
@@ -610,7 +614,9 @@ module Google
610
614
  options.apply_defaults timeout: @config.rpcs.list_uptime_check_ips.timeout,
611
615
  metadata: metadata,
612
616
  retry_policy: @config.rpcs.list_uptime_check_ips.retry_policy
613
- options.apply_defaults metadata: @config.metadata,
617
+
618
+ options.apply_defaults timeout: @config.timeout,
619
+ metadata: @config.metadata,
614
620
  retry_policy: @config.retry_policy
615
621
 
616
622
  @uptime_check_service_stub.call_rpc :list_uptime_check_ips, request, options: options do |response, operation|
@@ -635,22 +641,21 @@ module Google
635
641
  # Configuration can be applied globally to all clients, or to a single client
636
642
  # on construction.
637
643
  #
638
- # # Examples
639
- #
640
- # To modify the global config, setting the timeout for list_uptime_check_configs
641
- # to 20 seconds, and all remaining timeouts to 10 seconds:
642
- #
643
- # ::Google::Cloud::Monitoring::V3::UptimeCheckService::Client.configure do |config|
644
- # config.timeout = 10.0
645
- # config.rpcs.list_uptime_check_configs.timeout = 20.0
646
- # end
647
- #
648
- # To apply the above configuration only to a new client:
649
- #
650
- # client = ::Google::Cloud::Monitoring::V3::UptimeCheckService::Client.new do |config|
651
- # config.timeout = 10.0
652
- # config.rpcs.list_uptime_check_configs.timeout = 20.0
653
- # end
644
+ # @example
645
+ #
646
+ # # Modify the global config, setting the timeout for
647
+ # # list_uptime_check_configs to 20 seconds,
648
+ # # and all remaining timeouts to 10 seconds.
649
+ # ::Google::Cloud::Monitoring::V3::UptimeCheckService::Client.configure do |config|
650
+ # config.timeout = 10.0
651
+ # config.rpcs.list_uptime_check_configs.timeout = 20.0
652
+ # end
653
+ #
654
+ # # Apply the above configuration only to a new client.
655
+ # client = ::Google::Cloud::Monitoring::V3::UptimeCheckService::Client.new do |config|
656
+ # config.timeout = 10.0
657
+ # config.rpcs.list_uptime_check_configs.timeout = 20.0
658
+ # end
654
659
  #
655
660
  # @!attribute [rw] endpoint
656
661
  # The hostname or hostname:port of the service endpoint.
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Monitoring
23
23
  module V3
24
- VERSION = "0.4.2"
24
+ VERSION = "0.4.3"
25
25
  end
26
26
  end
27
27
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-monitoring-v3
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.2
4
+ version: 0.4.3
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-07-12 00:00:00.000000000 Z
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.5'
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.5'
29
+ version: '0.7'
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a