google-cloud-monitoring-v3 0.4.1 → 0.6.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (51) hide show
  1. checksums.yaml +4 -4
  2. data/AUTHENTICATION.md +8 -8
  3. data/README.md +1 -1
  4. data/lib/google/cloud/monitoring/v3/alert_policy_service/client.rb +52 -56
  5. data/lib/google/cloud/monitoring/v3/alert_policy_service/paths.rb +14 -0
  6. data/lib/google/cloud/monitoring/v3/group_service/client.rb +58 -66
  7. data/lib/google/cloud/monitoring/v3/group_service/paths.rb +14 -0
  8. data/lib/google/cloud/monitoring/v3/metric_service/client.rb +166 -75
  9. data/lib/google/cloud/monitoring/v3/notification_channel_service/client.rb +75 -79
  10. data/lib/google/cloud/monitoring/v3/notification_channel_service/paths.rb +14 -0
  11. data/lib/google/cloud/monitoring/v3/query_service/client.rb +35 -39
  12. data/lib/google/cloud/monitoring/v3/service_monitoring_service/client.rb +70 -73
  13. data/lib/google/cloud/monitoring/v3/service_monitoring_service/paths.rb +14 -0
  14. data/lib/google/cloud/monitoring/v3/uptime_check_service/client.rb +56 -61
  15. data/lib/google/cloud/monitoring/v3/uptime_check_service/paths.rb +14 -0
  16. data/lib/google/cloud/monitoring/v3/version.rb +1 -1
  17. data/lib/google/monitoring/v3/alert_pb.rb +17 -2
  18. data/lib/google/monitoring/v3/alert_service_pb.rb +2 -2
  19. data/lib/google/monitoring/v3/common_pb.rb +2 -2
  20. data/lib/google/monitoring/v3/group_pb.rb +1 -1
  21. data/lib/google/monitoring/v3/group_service_pb.rb +2 -2
  22. data/lib/google/monitoring/v3/metric_pb.rb +2 -2
  23. data/lib/google/monitoring/v3/metric_service_pb.rb +2 -2
  24. data/lib/google/monitoring/v3/metric_service_services_pb.rb +12 -0
  25. data/lib/google/monitoring/v3/mutation_record_pb.rb +1 -1
  26. data/lib/google/monitoring/v3/notification_pb.rb +2 -2
  27. data/lib/google/monitoring/v3/notification_service_pb.rb +2 -2
  28. data/lib/google/monitoring/v3/query_service_pb.rb +2 -2
  29. data/lib/google/monitoring/v3/service_pb.rb +5 -2
  30. data/lib/google/monitoring/v3/service_service_pb.rb +2 -2
  31. data/lib/google/monitoring/v3/uptime_pb.rb +2 -2
  32. data/lib/google/monitoring/v3/uptime_service_pb.rb +3 -2
  33. data/proto_docs/google/api/distribution.rb +2 -2
  34. data/proto_docs/google/api/field_behavior.rb +7 -1
  35. data/proto_docs/google/api/launch_stage.rb +7 -1
  36. data/proto_docs/google/api/metric.rb +109 -36
  37. data/proto_docs/google/api/monitored_resource.rb +7 -6
  38. data/proto_docs/google/longrunning/operations.rb +164 -0
  39. data/proto_docs/google/monitoring/v3/alert.rb +68 -3
  40. data/proto_docs/google/monitoring/v3/alert_service.rb +4 -2
  41. data/proto_docs/google/monitoring/v3/common.rb +17 -5
  42. data/proto_docs/google/monitoring/v3/group_service.rb +4 -2
  43. data/proto_docs/google/monitoring/v3/metric.rb +3 -1
  44. data/proto_docs/google/monitoring/v3/metric_service.rb +13 -8
  45. data/proto_docs/google/monitoring/v3/notification_service.rb +8 -4
  46. data/proto_docs/google/monitoring/v3/service.rb +38 -6
  47. data/proto_docs/google/monitoring/v3/service_service.rb +4 -2
  48. data/proto_docs/google/monitoring/v3/span_context.rb +2 -2
  49. data/proto_docs/google/monitoring/v3/uptime.rb +5 -2
  50. data/proto_docs/google/monitoring/v3/uptime_service.rb +4 -2
  51. metadata +5 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 82d58ea887dc8fd5c201c2609b6506d9c8ff121563487f6d61bc71ffe9261d92
4
- data.tar.gz: 21cc2aed83e4cf23ce294977a7cd07628039fe21327f7a12b69135c74574b921
3
+ metadata.gz: 5e2adcdd895a09b496d0690535f9e8b610ebf955a5826ece302aab758ac9e4e4
4
+ data.tar.gz: 02dd20945c0b716859a9cb5be7c8898a368e469afe92d78e45246933fe36929d
5
5
  SHA512:
6
- metadata.gz: 141173d2a28529db926cab02554643b1c4981849f9e4c9bddc7e714e5538976705fd0b5b2bbc60300e924c85307b18d789e8fc72974eefbd1e89ed3b232b6b75
7
- data.tar.gz: 7ffdf57253c7676d844a07cb16889c73eceb0e118159243822033ff192aeed8fd9b9741a4481742c4ee3585f081ca86f0d3402d113c090c7e0013372636b0420
6
+ metadata.gz: c09357f07ce077d4c8249eac7277e4cb7ab801a170108502b00fcfc906e99b2c8e2df25469c270157fb663e367569fc5f8340ee9da5f2b825a7136ece5c7a983
7
+ data.tar.gz: 340f1e694260e5ed7996812d68afb121536a5e9ae1fa97788a6fd61fc20a4aadac7a484a7be1a0f9b79be769c700e7fbec1dff4804fbcae6787453a588666ae7
data/AUTHENTICATION.md CHANGED
@@ -66,11 +66,11 @@ The environment variables that google-cloud-monitoring-v3
66
66
  checks for credentials are configured on the service Credentials class (such as
67
67
  {::Google::Cloud::Monitoring::V3::AlertPolicyService::Credentials}):
68
68
 
69
- 1. `MONITORING_CREDENTIALS` - Path to JSON file, or JSON contents
70
- 2. `MONITORING_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
+ * `MONITORING_CREDENTIALS` - Path to JSON file, or JSON contents
70
+ * `MONITORING_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/monitoring/v3"
@@ -82,8 +82,8 @@ client = ::Google::Cloud::Monitoring::V3::AlertPolicyService::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/monitoring/v3"
@@ -93,7 +93,7 @@ client = ::Google::Cloud::Monitoring::V3::AlertPolicyService::Client.new do |con
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/monitoring/v3"
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/monitoring/v3"
34
34
 
35
35
  client = ::Google::Cloud::Monitoring::V3::AlertPolicyService::Client.new
36
- request = my_create_request
36
+ request = ::Google::Cloud::Monitoring::V3::ListAlertPoliciesRequest.new # (request fields as keyword arguments...)
37
37
  response = client.list_alert_policies request
38
38
  ```
39
39
 
@@ -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]
@@ -75,28 +74,19 @@ module Google
75
74
 
76
75
  default_config.rpcs.list_alert_policies.timeout = 30.0
77
76
  default_config.rpcs.list_alert_policies.retry_policy = {
78
- initial_delay: 0.1,
79
- max_delay: 30.0,
80
- multiplier: 1.3,
81
- retry_codes: [4, 14]
77
+ initial_delay: 0.1, max_delay: 30.0, multiplier: 1.3, retry_codes: [14]
82
78
  }
83
79
 
84
80
  default_config.rpcs.get_alert_policy.timeout = 30.0
85
81
  default_config.rpcs.get_alert_policy.retry_policy = {
86
- initial_delay: 0.1,
87
- max_delay: 30.0,
88
- multiplier: 1.3,
89
- retry_codes: [4, 14]
82
+ initial_delay: 0.1, max_delay: 30.0, multiplier: 1.3, retry_codes: [14]
90
83
  }
91
84
 
92
85
  default_config.rpcs.create_alert_policy.timeout = 30.0
93
86
 
94
87
  default_config.rpcs.delete_alert_policy.timeout = 30.0
95
88
  default_config.rpcs.delete_alert_policy.retry_policy = {
96
- initial_delay: 0.1,
97
- max_delay: 30.0,
98
- multiplier: 1.3,
99
- retry_codes: [4, 14]
89
+ initial_delay: 0.1, max_delay: 30.0, multiplier: 1.3, retry_codes: [14]
100
90
  }
101
91
 
102
92
  default_config.rpcs.update_alert_policy.timeout = 30.0
@@ -130,19 +120,15 @@ module Google
130
120
  ##
131
121
  # Create a new AlertPolicyService client object.
132
122
  #
133
- # ## Examples
134
- #
135
- # To create a new AlertPolicyService client with the default
136
- # configuration:
137
- #
138
- # client = ::Google::Cloud::Monitoring::V3::AlertPolicyService::Client.new
123
+ # @example
139
124
  #
140
- # To create a new AlertPolicyService client with a custom
141
- # configuration:
125
+ # # Create a client using the default configuration
126
+ # client = ::Google::Cloud::Monitoring::V3::AlertPolicyService::Client.new
142
127
  #
143
- # client = ::Google::Cloud::Monitoring::V3::AlertPolicyService::Client.new do |config|
144
- # config.timeout = 10.0
145
- # 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
146
132
  #
147
133
  # @yield [config] Configure the AlertPolicyService client.
148
134
  # @yieldparam config [Client::Configuration]
@@ -162,14 +148,13 @@ module Google
162
148
 
163
149
  # Create credentials
164
150
  credentials = @config.credentials
165
- # 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,
166
152
  # but only if the default endpoint does not have a region prefix.
167
- enable_self_signed_jwt = @config.scope == Client.configure.scope &&
168
- @config.endpoint == Client.configure.endpoint &&
153
+ enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
169
154
  !@config.endpoint.split(".").first.include?("-")
170
155
  credentials ||= Credentials.default scope: @config.scope,
171
156
  enable_self_signed_jwt: enable_self_signed_jwt
172
- if credentials.is_a?(String) || credentials.is_a?(Hash)
157
+ if credentials.is_a?(::String) || credentials.is_a?(::Hash)
173
158
  credentials = Credentials.new credentials, scope: @config.scope
174
159
  end
175
160
  @quota_project_id = @config.quota_project
@@ -205,7 +190,8 @@ module Google
205
190
  # the default parameter values, pass an empty Hash as a request object (see above).
206
191
  #
207
192
  # @param name [::String]
208
- # Required. The project whose alert policies are to be listed. The format is:
193
+ # Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name)
194
+ # whose alert policies are to be listed. The format is:
209
195
  #
210
196
  # projects/[PROJECT_ID_OR_NUMBER]
211
197
  #
@@ -268,7 +254,9 @@ module Google
268
254
  options.apply_defaults timeout: @config.rpcs.list_alert_policies.timeout,
269
255
  metadata: metadata,
270
256
  retry_policy: @config.rpcs.list_alert_policies.retry_policy
271
- options.apply_defaults metadata: @config.metadata,
257
+
258
+ options.apply_defaults timeout: @config.timeout,
259
+ metadata: @config.metadata,
272
260
  retry_policy: @config.retry_policy
273
261
 
274
262
  @alert_policy_service_stub.call_rpc :list_alert_policies, request, options: options do |response, operation|
@@ -337,7 +325,9 @@ module Google
337
325
  options.apply_defaults timeout: @config.rpcs.get_alert_policy.timeout,
338
326
  metadata: metadata,
339
327
  retry_policy: @config.rpcs.get_alert_policy.retry_policy
340
- options.apply_defaults metadata: @config.metadata,
328
+
329
+ options.apply_defaults timeout: @config.timeout,
330
+ metadata: @config.metadata,
341
331
  retry_policy: @config.retry_policy
342
332
 
343
333
  @alert_policy_service_stub.call_rpc :get_alert_policy, request, options: options do |response, operation|
@@ -367,7 +357,8 @@ module Google
367
357
  # the default parameter values, pass an empty Hash as a request object (see above).
368
358
  #
369
359
  # @param name [::String]
370
- # Required. The project in which to create the alerting policy. The format is:
360
+ # Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) in
361
+ # which to create the alerting policy. The format is:
371
362
  #
372
363
  # projects/[PROJECT_ID_OR_NUMBER]
373
364
  #
@@ -417,7 +408,9 @@ module Google
417
408
  options.apply_defaults timeout: @config.rpcs.create_alert_policy.timeout,
418
409
  metadata: metadata,
419
410
  retry_policy: @config.rpcs.create_alert_policy.retry_policy
420
- options.apply_defaults metadata: @config.metadata,
411
+
412
+ options.apply_defaults timeout: @config.timeout,
413
+ metadata: @config.metadata,
421
414
  retry_policy: @config.retry_policy
422
415
 
423
416
  @alert_policy_service_stub.call_rpc :create_alert_policy, request, options: options do |response, operation|
@@ -487,7 +480,9 @@ module Google
487
480
  options.apply_defaults timeout: @config.rpcs.delete_alert_policy.timeout,
488
481
  metadata: metadata,
489
482
  retry_policy: @config.rpcs.delete_alert_policy.retry_policy
490
- options.apply_defaults metadata: @config.metadata,
483
+
484
+ options.apply_defaults timeout: @config.timeout,
485
+ metadata: @config.metadata,
491
486
  retry_policy: @config.retry_policy
492
487
 
493
488
  @alert_policy_service_stub.call_rpc :delete_alert_policy, request, options: options do |response, operation|
@@ -581,7 +576,9 @@ module Google
581
576
  options.apply_defaults timeout: @config.rpcs.update_alert_policy.timeout,
582
577
  metadata: metadata,
583
578
  retry_policy: @config.rpcs.update_alert_policy.retry_policy
584
- options.apply_defaults metadata: @config.metadata,
579
+
580
+ options.apply_defaults timeout: @config.timeout,
581
+ metadata: @config.metadata,
585
582
  retry_policy: @config.retry_policy
586
583
 
587
584
  @alert_policy_service_stub.call_rpc :update_alert_policy, request, options: options do |response, operation|
@@ -605,22 +602,21 @@ module Google
605
602
  # Configuration can be applied globally to all clients, or to a single client
606
603
  # on construction.
607
604
  #
608
- # # Examples
609
- #
610
- # To modify the global config, setting the timeout for list_alert_policies
611
- # to 20 seconds, and all remaining timeouts to 10 seconds:
612
- #
613
- # ::Google::Cloud::Monitoring::V3::AlertPolicyService::Client.configure do |config|
614
- # config.timeout = 10.0
615
- # config.rpcs.list_alert_policies.timeout = 20.0
616
- # end
617
- #
618
- # To apply the above configuration only to a new client:
619
- #
620
- # client = ::Google::Cloud::Monitoring::V3::AlertPolicyService::Client.new do |config|
621
- # config.timeout = 10.0
622
- # config.rpcs.list_alert_policies.timeout = 20.0
623
- # end
605
+ # @example
606
+ #
607
+ # # Modify the global config, setting the timeout for
608
+ # # list_alert_policies to 20 seconds,
609
+ # # and all remaining timeouts to 10 seconds.
610
+ # ::Google::Cloud::Monitoring::V3::AlertPolicyService::Client.configure do |config|
611
+ # config.timeout = 10.0
612
+ # config.rpcs.list_alert_policies.timeout = 20.0
613
+ # end
614
+ #
615
+ # # Apply the above configuration only to a new client.
616
+ # client = ::Google::Cloud::Monitoring::V3::AlertPolicyService::Client.new do |config|
617
+ # config.timeout = 10.0
618
+ # config.rpcs.list_alert_policies.timeout = 20.0
619
+ # end
624
620
  #
625
621
  # @!attribute [rw] endpoint
626
622
  # The hostname or hostname:port of the service endpoint.
@@ -162,6 +162,20 @@ module Google
162
162
  "organizations/#{organization}"
163
163
  end
164
164
 
165
+ ##
166
+ # Create a fully-qualified Project resource string.
167
+ #
168
+ # The resource will be in the following format:
169
+ #
170
+ # `projects/{project}`
171
+ #
172
+ # @param project [String]
173
+ #
174
+ # @return [::String]
175
+ def project_path project:
176
+ "projects/#{project}"
177
+ end
178
+
165
179
  ##
166
180
  # Create a fully-qualified Workspace resource string.
167
181
  #
@@ -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]
@@ -78,44 +77,29 @@ module Google
78
77
 
79
78
  default_config.rpcs.list_groups.timeout = 30.0
80
79
  default_config.rpcs.list_groups.retry_policy = {
81
- initial_delay: 0.1,
82
- max_delay: 30.0,
83
- multiplier: 1.3,
84
- retry_codes: [4, 14]
80
+ initial_delay: 0.1, max_delay: 30.0, multiplier: 1.3, retry_codes: [14]
85
81
  }
86
82
 
87
83
  default_config.rpcs.get_group.timeout = 30.0
88
84
  default_config.rpcs.get_group.retry_policy = {
89
- initial_delay: 0.1,
90
- max_delay: 30.0,
91
- multiplier: 1.3,
92
- retry_codes: [4, 14]
85
+ initial_delay: 0.1, max_delay: 30.0, multiplier: 1.3, retry_codes: [14]
93
86
  }
94
87
 
95
88
  default_config.rpcs.create_group.timeout = 30.0
96
89
 
97
- default_config.rpcs.update_group.timeout = 30.0
90
+ default_config.rpcs.update_group.timeout = 180.0
98
91
  default_config.rpcs.update_group.retry_policy = {
99
- initial_delay: 0.1,
100
- max_delay: 30.0,
101
- multiplier: 1.3,
102
- retry_codes: [4, 14]
92
+ initial_delay: 0.1, max_delay: 30.0, multiplier: 1.3, retry_codes: [14]
103
93
  }
104
94
 
105
95
  default_config.rpcs.delete_group.timeout = 30.0
106
96
  default_config.rpcs.delete_group.retry_policy = {
107
- initial_delay: 0.1,
108
- max_delay: 30.0,
109
- multiplier: 1.3,
110
- retry_codes: [4, 14]
97
+ initial_delay: 0.1, max_delay: 30.0, multiplier: 1.3, retry_codes: [14]
111
98
  }
112
99
 
113
100
  default_config.rpcs.list_group_members.timeout = 30.0
114
101
  default_config.rpcs.list_group_members.retry_policy = {
115
- initial_delay: 0.1,
116
- max_delay: 30.0,
117
- multiplier: 1.3,
118
- retry_codes: [4, 14]
102
+ initial_delay: 0.1, max_delay: 30.0, multiplier: 1.3, retry_codes: [14]
119
103
  }
120
104
 
121
105
  default_config
@@ -147,19 +131,15 @@ module Google
147
131
  ##
148
132
  # Create a new GroupService client object.
149
133
  #
150
- # ## Examples
151
- #
152
- # To create a new GroupService client with the default
153
- # configuration:
134
+ # @example
154
135
  #
155
- # 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
156
138
  #
157
- # To create a new GroupService client with a custom
158
- # configuration:
159
- #
160
- # client = ::Google::Cloud::Monitoring::V3::GroupService::Client.new do |config|
161
- # config.timeout = 10.0
162
- # 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
163
143
  #
164
144
  # @yield [config] Configure the GroupService client.
165
145
  # @yieldparam config [Client::Configuration]
@@ -179,14 +159,13 @@ module Google
179
159
 
180
160
  # Create credentials
181
161
  credentials = @config.credentials
182
- # 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,
183
163
  # but only if the default endpoint does not have a region prefix.
184
- enable_self_signed_jwt = @config.scope == Client.configure.scope &&
185
- @config.endpoint == Client.configure.endpoint &&
164
+ enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
186
165
  !@config.endpoint.split(".").first.include?("-")
187
166
  credentials ||= Credentials.default scope: @config.scope,
188
167
  enable_self_signed_jwt: enable_self_signed_jwt
189
- if credentials.is_a?(String) || credentials.is_a?(Hash)
168
+ if credentials.is_a?(::String) || credentials.is_a?(::Hash)
190
169
  credentials = Credentials.new credentials, scope: @config.scope
191
170
  end
192
171
  @quota_project_id = @config.quota_project
@@ -222,7 +201,8 @@ module Google
222
201
  # the default parameter values, pass an empty Hash as a request object (see above).
223
202
  #
224
203
  # @param name [::String]
225
- # Required. The project whose groups are to be listed. The format is:
204
+ # Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name)
205
+ # whose groups are to be listed. The format is:
226
206
  #
227
207
  # projects/[PROJECT_ID_OR_NUMBER]
228
208
  # @param children_of_group [::String]
@@ -290,7 +270,9 @@ module Google
290
270
  options.apply_defaults timeout: @config.rpcs.list_groups.timeout,
291
271
  metadata: metadata,
292
272
  retry_policy: @config.rpcs.list_groups.retry_policy
293
- options.apply_defaults metadata: @config.metadata,
273
+
274
+ options.apply_defaults timeout: @config.timeout,
275
+ metadata: @config.metadata,
294
276
  retry_policy: @config.retry_policy
295
277
 
296
278
  @group_service_stub.call_rpc :list_groups, request, options: options do |response, operation|
@@ -359,7 +341,9 @@ module Google
359
341
  options.apply_defaults timeout: @config.rpcs.get_group.timeout,
360
342
  metadata: metadata,
361
343
  retry_policy: @config.rpcs.get_group.retry_policy
362
- options.apply_defaults metadata: @config.metadata,
344
+
345
+ options.apply_defaults timeout: @config.timeout,
346
+ metadata: @config.metadata,
363
347
  retry_policy: @config.retry_policy
364
348
 
365
349
  @group_service_stub.call_rpc :get_group, request, options: options do |response, operation|
@@ -389,7 +373,8 @@ module Google
389
373
  # the default parameter values, pass an empty Hash as a request object (see above).
390
374
  #
391
375
  # @param name [::String]
392
- # Required. The project in which to create the group. The format is:
376
+ # Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) in
377
+ # which to create the group. The format is:
393
378
  #
394
379
  # projects/[PROJECT_ID_OR_NUMBER]
395
380
  # @param group [::Google::Cloud::Monitoring::V3::Group, ::Hash]
@@ -432,7 +417,9 @@ module Google
432
417
  options.apply_defaults timeout: @config.rpcs.create_group.timeout,
433
418
  metadata: metadata,
434
419
  retry_policy: @config.rpcs.create_group.retry_policy
435
- options.apply_defaults metadata: @config.metadata,
420
+
421
+ options.apply_defaults timeout: @config.timeout,
422
+ metadata: @config.metadata,
436
423
  retry_policy: @config.retry_policy
437
424
 
438
425
  @group_service_stub.call_rpc :create_group, request, options: options do |response, operation|
@@ -502,7 +489,9 @@ module Google
502
489
  options.apply_defaults timeout: @config.rpcs.update_group.timeout,
503
490
  metadata: metadata,
504
491
  retry_policy: @config.rpcs.update_group.retry_policy
505
- options.apply_defaults metadata: @config.metadata,
492
+
493
+ options.apply_defaults timeout: @config.timeout,
494
+ metadata: @config.metadata,
506
495
  retry_policy: @config.retry_policy
507
496
 
508
497
  @group_service_stub.call_rpc :update_group, request, options: options do |response, operation|
@@ -574,7 +563,9 @@ module Google
574
563
  options.apply_defaults timeout: @config.rpcs.delete_group.timeout,
575
564
  metadata: metadata,
576
565
  retry_policy: @config.rpcs.delete_group.retry_policy
577
- options.apply_defaults metadata: @config.metadata,
566
+
567
+ options.apply_defaults timeout: @config.timeout,
568
+ metadata: @config.metadata,
578
569
  retry_policy: @config.retry_policy
579
570
 
580
571
  @group_service_stub.call_rpc :delete_group, request, options: options do |response, operation|
@@ -662,7 +653,9 @@ module Google
662
653
  options.apply_defaults timeout: @config.rpcs.list_group_members.timeout,
663
654
  metadata: metadata,
664
655
  retry_policy: @config.rpcs.list_group_members.retry_policy
665
- options.apply_defaults metadata: @config.metadata,
656
+
657
+ options.apply_defaults timeout: @config.timeout,
658
+ metadata: @config.metadata,
666
659
  retry_policy: @config.retry_policy
667
660
 
668
661
  @group_service_stub.call_rpc :list_group_members, request, options: options do |response, operation|
@@ -687,22 +680,21 @@ module Google
687
680
  # Configuration can be applied globally to all clients, or to a single client
688
681
  # on construction.
689
682
  #
690
- # # Examples
691
- #
692
- # To modify the global config, setting the timeout for list_groups
693
- # to 20 seconds, and all remaining timeouts to 10 seconds:
694
- #
695
- # ::Google::Cloud::Monitoring::V3::GroupService::Client.configure do |config|
696
- # config.timeout = 10.0
697
- # config.rpcs.list_groups.timeout = 20.0
698
- # end
699
- #
700
- # To apply the above configuration only to a new client:
701
- #
702
- # client = ::Google::Cloud::Monitoring::V3::GroupService::Client.new do |config|
703
- # config.timeout = 10.0
704
- # config.rpcs.list_groups.timeout = 20.0
705
- # end
683
+ # @example
684
+ #
685
+ # # Modify the global config, setting the timeout for
686
+ # # list_groups to 20 seconds,
687
+ # # and all remaining timeouts to 10 seconds.
688
+ # ::Google::Cloud::Monitoring::V3::GroupService::Client.configure do |config|
689
+ # config.timeout = 10.0
690
+ # config.rpcs.list_groups.timeout = 20.0
691
+ # end
692
+ #
693
+ # # Apply the above configuration only to a new client.
694
+ # client = ::Google::Cloud::Monitoring::V3::GroupService::Client.new do |config|
695
+ # config.timeout = 10.0
696
+ # config.rpcs.list_groups.timeout = 20.0
697
+ # end
706
698
  #
707
699
  # @!attribute [rw] endpoint
708
700
  # The hostname or hostname:port of the service endpoint.
@@ -104,6 +104,20 @@ module Google
104
104
  "organizations/#{organization}"
105
105
  end
106
106
 
107
+ ##
108
+ # Create a fully-qualified Project resource string.
109
+ #
110
+ # The resource will be in the following format:
111
+ #
112
+ # `projects/{project}`
113
+ #
114
+ # @param project [String]
115
+ #
116
+ # @return [::String]
117
+ def project_path project:
118
+ "projects/#{project}"
119
+ end
120
+
107
121
  ##
108
122
  # Create a fully-qualified Workspace resource string.
109
123
  #