google-cloud-monitoring 0.27.0 → 0.28.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (43) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +17 -5
  3. data/lib/google/cloud/monitoring.rb +164 -6
  4. data/lib/google/cloud/monitoring/credentials.rb +1 -1
  5. data/lib/google/cloud/monitoring/v3.rb +167 -26
  6. data/lib/google/cloud/monitoring/v3/alert_policy_service_client.rb +486 -0
  7. data/lib/google/cloud/monitoring/v3/alert_policy_service_client_config.json +51 -0
  8. data/lib/google/cloud/monitoring/v3/doc/google/api/distribution.rb +1 -1
  9. data/lib/google/cloud/monitoring/v3/doc/google/api/label.rb +1 -1
  10. data/lib/google/cloud/monitoring/v3/doc/google/api/metric.rb +1 -1
  11. data/lib/google/cloud/monitoring/v3/doc/google/api/monitored_resource.rb +1 -1
  12. data/lib/google/cloud/monitoring/v3/doc/google/monitoring/v3/alert.rb +326 -0
  13. data/lib/google/cloud/monitoring/v3/doc/google/monitoring/v3/common.rb +91 -3
  14. data/lib/google/cloud/monitoring/v3/doc/google/monitoring/v3/group.rb +1 -1
  15. data/lib/google/cloud/monitoring/v3/doc/google/monitoring/v3/metric.rb +1 -1
  16. data/lib/google/cloud/monitoring/v3/doc/google/monitoring/v3/mutation_record.rb +28 -0
  17. data/lib/google/cloud/monitoring/v3/doc/google/monitoring/v3/notification.rb +152 -0
  18. data/lib/google/cloud/monitoring/v3/doc/google/monitoring/v3/uptime.rb +223 -0
  19. data/lib/google/cloud/monitoring/v3/doc/google/protobuf/duration.rb +1 -1
  20. data/lib/google/cloud/monitoring/v3/doc/google/protobuf/field_mask.rb +223 -0
  21. data/lib/google/cloud/monitoring/v3/doc/google/protobuf/timestamp.rb +1 -1
  22. data/lib/google/cloud/monitoring/v3/doc/google/protobuf/wrappers.rb +89 -0
  23. data/lib/google/cloud/monitoring/v3/doc/overview.rb +8 -7
  24. data/lib/google/cloud/monitoring/v3/group_service_client.rb +13 -21
  25. data/lib/google/cloud/monitoring/v3/metric_service_client.rb +19 -21
  26. data/lib/google/cloud/monitoring/v3/notification_channel_service_client.rb +557 -0
  27. data/lib/google/cloud/monitoring/v3/notification_channel_service_client_config.json +61 -0
  28. data/lib/google/cloud/monitoring/v3/uptime_check_service_client.rb +476 -0
  29. data/lib/google/cloud/monitoring/v3/uptime_check_service_client_config.json +56 -0
  30. data/lib/google/monitoring/v3/alert_pb.rb +78 -0
  31. data/lib/google/monitoring/v3/alert_service_pb.rb +49 -0
  32. data/lib/google/monitoring/v3/alert_service_services_pb.rb +62 -0
  33. data/lib/google/monitoring/v3/common_pb.rb +20 -0
  34. data/lib/google/monitoring/v3/group_service_services_pb.rb +1 -1
  35. data/lib/google/monitoring/v3/metric_service_services_pb.rb +1 -1
  36. data/lib/google/monitoring/v3/mutation_record_pb.rb +20 -0
  37. data/lib/google/monitoring/v3/notification_pb.rb +44 -0
  38. data/lib/google/monitoring/v3/notification_service_pb.rb +85 -0
  39. data/lib/google/monitoring/v3/notification_service_services_pb.rb +93 -0
  40. data/lib/google/monitoring/v3/uptime_pb.rb +89 -0
  41. data/lib/google/monitoring/v3/uptime_service_pb.rb +57 -0
  42. data/lib/google/monitoring/v3/uptime_service_services_pb.rb +66 -0
  43. metadata +31 -9
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 84bf73407e384f73a445b18defecdf6846ca7ae999bd4268efcc439807c77ffb
4
- data.tar.gz: 3ebeeb25cf49c82599a56886635ec446109ce21c7e728d3120b1677ad725b7ee
3
+ metadata.gz: 698306f2a66ee39a99d5dd4223dad3b3201fc82d393fa192f95f31f34282d7b3
4
+ data.tar.gz: 13cb6098bedb61afb43de9a45cfe3a742fa42b66d6498bed6e8197268881fc7c
5
5
  SHA512:
6
- metadata.gz: ad1c67b3263d1508473d711341970c445a99848c93d1130a4261c6145b3a2cdb7ecb9a41e9ac5538b5418339ea9c782f28d1c6c438eaf3aa5dd07ad525d24748
7
- data.tar.gz: 3d6fcca0ae87b1202dfe147ead87aa4ff2fb9feaa6525e15c548d3975f3c978d65abe40f6348dc591b02bf2330c3cddbc1dd500d451279b9aaed229496a8bdc5
6
+ metadata.gz: f34b68352feab2f4f2187739da695abce2cb53f398d2f9a024deae6193ce74c023740fad65e62d9115d86ab93539aa34e8c78d209c6592761e0d28ab7637de9f
7
+ data.tar.gz: 15079c30c302de64e4dce7a3845159fd3a5224dd3bce20ac6a0832329f1faccc7a5a15cba1fa13d94f30b6bdf00340b05c168230d26638db1e263338a1a422dd
data/README.md CHANGED
@@ -1,9 +1,9 @@
1
1
  # Ruby Client for Stackdriver Monitoring API ([Beta](https://github.com/GoogleCloudPlatform/google-cloud-ruby#versioning))
2
2
 
3
3
  [Stackdriver Monitoring API][Product Documentation]:
4
- Manages your Stackdriver Monitoring data and configurations. Most projects must
5
- be associated with a Stackdriver account, with a few exceptions as noted on the
6
- individual method pages.
4
+ Manages your Stackdriver Monitoring data and configurations. Most projects
5
+ must be associated with a Stackdriver account, with a few exceptions as
6
+ noted on the individual method pages.
7
7
  - [Client Library Documentation][]
8
8
  - [Product Documentation][]
9
9
 
@@ -12,8 +12,9 @@ In order to use this library, you first need to go through the following
12
12
  steps:
13
13
 
14
14
  1. [Select or create a Cloud Platform project.](https://console.cloud.google.com/project)
15
- 2. [Enable the Stackdriver Monitoring API.](https://console.cloud.google.com/apis/api/monitoring)
16
- 3. [Setup Authentication.](https://googlecloudplatform.github.io/google-cloud-ruby/#/docs/google-cloud/master/guides/authentication)
15
+ 2. [Enable billing for your project.](https://cloud.google.com/billing/docs/how-to/modify-project#enable_billing_for_a_project)
16
+ 3. [Enable the Stackdriver Monitoring API.](https://console.cloud.google.com/apis/api/monitoring)
17
+ 4. [Setup Authentication.](https://googlecloudplatform.github.io/google-cloud-ruby/#/docs/google-cloud/master/guides/authentication)
17
18
 
18
19
  ### Installation
19
20
  ```
@@ -42,6 +43,17 @@ metric_service_client.list_monitored_resource_descriptors(formatted_name).each_p
42
43
  end
43
44
  ```
44
45
 
46
+ ### Supported Ruby Versions
47
+
48
+ This library is supported on Ruby 2.0+.
49
+
50
+ However, Ruby 2.3 or later is strongly recommended, as earlier releases have
51
+ reached or are nearing end-of-life. After June 1, 2018, Google will provide
52
+ official support only for Ruby versions that are considered current and
53
+ supported by Ruby Core (that is, Ruby versions that are either in normal
54
+ maintenance or in security maintenance).
55
+ See https://www.ruby-lang.org/en/downloads/branches/ for further details.
56
+
45
57
  ### Next Steps
46
58
  - Read the [Client Library Documentation][] for Stackdriver Monitoring API
47
59
  to see other available methods on the client.
@@ -1,4 +1,4 @@
1
- # Copyright 2017 Google LLC
1
+ # Copyright 2018 Google LLC
2
2
  #
3
3
  # Licensed under the Apache License, Version 2.0 (the "License");
4
4
  # you may not use this file except in compliance with the License.
@@ -23,9 +23,9 @@ module Google
23
23
  # # Ruby Client for Stackdriver Monitoring API ([Beta](https://github.com/GoogleCloudPlatform/google-cloud-ruby#versioning))
24
24
  #
25
25
  # [Stackdriver Monitoring API][Product Documentation]:
26
- # Manages your Stackdriver Monitoring data and configurations. Most projects must
27
- # be associated with a Stackdriver account, with a few exceptions as noted on the
28
- # individual method pages.
26
+ # Manages your Stackdriver Monitoring data and configurations. Most projects
27
+ # must be associated with a Stackdriver account, with a few exceptions as
28
+ # noted on the individual method pages.
29
29
  # - [Product Documentation][]
30
30
  #
31
31
  # ## Quick Start
@@ -33,8 +33,9 @@ module Google
33
33
  # steps:
34
34
  #
35
35
  # 1. [Select or create a Cloud Platform project.](https://console.cloud.google.com/project)
36
- # 2. [Enable the Stackdriver Monitoring API.](https://console.cloud.google.com/apis/api/monitoring)
37
- # 3. [Setup Authentication.](https://googlecloudplatform.github.io/google-cloud-ruby/#/docs/google-cloud/master/guides/authentication)
36
+ # 2. [Enable billing for your project.](https://cloud.google.com/billing/docs/how-to/modify-project#enable_billing_for_a_project)
37
+ # 3. [Enable the Stackdriver Monitoring API.](https://console.cloud.google.com/apis/api/monitoring)
38
+ # 4. [Setup Authentication.](https://googlecloudplatform.github.io/google-cloud-ruby/#/docs/google-cloud/master/guides/authentication)
38
39
  #
39
40
  # ### Preview
40
41
  # #### MetricServiceClient
@@ -78,6 +79,61 @@ module Google
78
79
  .select { |dir| File.exist?(dir + ".rb") }
79
80
  .map { |dir| File.basename(dir) }
80
81
 
82
+ module AlertPolicy
83
+ ##
84
+ # The AlertPolicyService API is used to manage (list, create, delete,
85
+ # edit) alert policies in Stackdriver Monitoring. An alerting policy is
86
+ # a description of the conditions under which some aspect of your
87
+ # system is considered to be "unhealthy" and the ways to notify
88
+ # people or services about this state. In addition to using this API, alert
89
+ # policies can also be managed through
90
+ # [Stackdriver Monitoring](https://cloud.google.com/monitoring/docs/),
91
+ # which can be reached by clicking the "Monitoring" tab in
92
+ # [Cloud Console](https://console.cloud.google.com/).
93
+ #
94
+ # @param version [Symbol, String]
95
+ # The major version of the service to be used. By default :v3
96
+ # is used.
97
+ # @overload new(version:, credentials:, scopes:, client_config:, timeout:)
98
+ # @param credentials [Google::Auth::Credentials, String, Hash, GRPC::Core::Channel, GRPC::Core::ChannelCredentials, Proc]
99
+ # Provides the means for authenticating requests made by the client. This parameter can
100
+ # be many types.
101
+ # A `Google::Auth::Credentials` uses a the properties of its represented keyfile for
102
+ # authenticating requests made by this client.
103
+ # A `String` will be treated as the path to the keyfile to be used for the construction of
104
+ # credentials for this client.
105
+ # A `Hash` will be treated as the contents of a keyfile to be used for the construction of
106
+ # credentials for this client.
107
+ # A `GRPC::Core::Channel` will be used to make calls through.
108
+ # A `GRPC::Core::ChannelCredentials` for the setting up the RPC client. The channel credentials
109
+ # should already be composed with a `GRPC::Core::CallCredentials` object.
110
+ # A `Proc` will be used as an updater_proc for the Grpc channel. The proc transforms the
111
+ # metadata for requests, generally, to give OAuth credentials.
112
+ # @param scopes [Array<String>]
113
+ # The OAuth scopes for this service. This parameter is ignored if
114
+ # an updater_proc is supplied.
115
+ # @param client_config [Hash]
116
+ # A Hash for call options for each method. See
117
+ # Google::Gax#construct_settings for the structure of
118
+ # this data. Falls back to the default config if not specified
119
+ # or the specified config is missing data points.
120
+ # @param timeout [Numeric]
121
+ # The default timeout, in seconds, for calls made through this client.
122
+ def self.new(*args, version: :v3, **kwargs)
123
+ unless AVAILABLE_VERSIONS.include?(version.to_s.downcase)
124
+ raise "The version: #{version} is not available. The available versions " \
125
+ "are: [#{AVAILABLE_VERSIONS.join(", ")}]"
126
+ end
127
+
128
+ require "#{FILE_DIR}/#{version.to_s.downcase}"
129
+ version_module = Google::Cloud::Monitoring
130
+ .constants
131
+ .select {|sym| sym.to_s.downcase == version.to_s.downcase}
132
+ .first
133
+ Google::Cloud::Monitoring.const_get(version_module)::AlertPolicy.new(*args, **kwargs)
134
+ end
135
+ end
136
+
81
137
  module Group
82
138
  ##
83
139
  # The Group API lets you inspect and manage your
@@ -183,6 +239,108 @@ module Google
183
239
  Google::Cloud::Monitoring.const_get(version_module)::Metric.new(*args, **kwargs)
184
240
  end
185
241
  end
242
+
243
+ module NotificationChannel
244
+ ##
245
+ # The Notification Channel API provides access to configuration that
246
+ # controls how messages related to incidents are sent.
247
+ #
248
+ # @param version [Symbol, String]
249
+ # The major version of the service to be used. By default :v3
250
+ # is used.
251
+ # @overload new(version:, credentials:, scopes:, client_config:, timeout:)
252
+ # @param credentials [Google::Auth::Credentials, String, Hash, GRPC::Core::Channel, GRPC::Core::ChannelCredentials, Proc]
253
+ # Provides the means for authenticating requests made by the client. This parameter can
254
+ # be many types.
255
+ # A `Google::Auth::Credentials` uses a the properties of its represented keyfile for
256
+ # authenticating requests made by this client.
257
+ # A `String` will be treated as the path to the keyfile to be used for the construction of
258
+ # credentials for this client.
259
+ # A `Hash` will be treated as the contents of a keyfile to be used for the construction of
260
+ # credentials for this client.
261
+ # A `GRPC::Core::Channel` will be used to make calls through.
262
+ # A `GRPC::Core::ChannelCredentials` for the setting up the RPC client. The channel credentials
263
+ # should already be composed with a `GRPC::Core::CallCredentials` object.
264
+ # A `Proc` will be used as an updater_proc for the Grpc channel. The proc transforms the
265
+ # metadata for requests, generally, to give OAuth credentials.
266
+ # @param scopes [Array<String>]
267
+ # The OAuth scopes for this service. This parameter is ignored if
268
+ # an updater_proc is supplied.
269
+ # @param client_config [Hash]
270
+ # A Hash for call options for each method. See
271
+ # Google::Gax#construct_settings for the structure of
272
+ # this data. Falls back to the default config if not specified
273
+ # or the specified config is missing data points.
274
+ # @param timeout [Numeric]
275
+ # The default timeout, in seconds, for calls made through this client.
276
+ def self.new(*args, version: :v3, **kwargs)
277
+ unless AVAILABLE_VERSIONS.include?(version.to_s.downcase)
278
+ raise "The version: #{version} is not available. The available versions " \
279
+ "are: [#{AVAILABLE_VERSIONS.join(", ")}]"
280
+ end
281
+
282
+ require "#{FILE_DIR}/#{version.to_s.downcase}"
283
+ version_module = Google::Cloud::Monitoring
284
+ .constants
285
+ .select {|sym| sym.to_s.downcase == version.to_s.downcase}
286
+ .first
287
+ Google::Cloud::Monitoring.const_get(version_module)::NotificationChannel.new(*args, **kwargs)
288
+ end
289
+ end
290
+
291
+ module UptimeCheck
292
+ ##
293
+ # The UptimeCheckService API is used to manage (list, create, delete, edit)
294
+ # uptime check configurations in the Stackdriver Monitoring product. An uptime
295
+ # check is a piece of configuration that determines which resources and
296
+ # services to monitor for availability. These configurations can also be
297
+ # configured interactively by navigating to the [Cloud Console]
298
+ # (http://console.cloud.google.com), selecting the appropriate project,
299
+ # clicking on "Monitoring" on the left-hand side to navigate to Stackdriver,
300
+ # and then clicking on "Uptime".
301
+ #
302
+ # @param version [Symbol, String]
303
+ # The major version of the service to be used. By default :v3
304
+ # is used.
305
+ # @overload new(version:, credentials:, scopes:, client_config:, timeout:)
306
+ # @param credentials [Google::Auth::Credentials, String, Hash, GRPC::Core::Channel, GRPC::Core::ChannelCredentials, Proc]
307
+ # Provides the means for authenticating requests made by the client. This parameter can
308
+ # be many types.
309
+ # A `Google::Auth::Credentials` uses a the properties of its represented keyfile for
310
+ # authenticating requests made by this client.
311
+ # A `String` will be treated as the path to the keyfile to be used for the construction of
312
+ # credentials for this client.
313
+ # A `Hash` will be treated as the contents of a keyfile to be used for the construction of
314
+ # credentials for this client.
315
+ # A `GRPC::Core::Channel` will be used to make calls through.
316
+ # A `GRPC::Core::ChannelCredentials` for the setting up the RPC client. The channel credentials
317
+ # should already be composed with a `GRPC::Core::CallCredentials` object.
318
+ # A `Proc` will be used as an updater_proc for the Grpc channel. The proc transforms the
319
+ # metadata for requests, generally, to give OAuth credentials.
320
+ # @param scopes [Array<String>]
321
+ # The OAuth scopes for this service. This parameter is ignored if
322
+ # an updater_proc is supplied.
323
+ # @param client_config [Hash]
324
+ # A Hash for call options for each method. See
325
+ # Google::Gax#construct_settings for the structure of
326
+ # this data. Falls back to the default config if not specified
327
+ # or the specified config is missing data points.
328
+ # @param timeout [Numeric]
329
+ # The default timeout, in seconds, for calls made through this client.
330
+ def self.new(*args, version: :v3, **kwargs)
331
+ unless AVAILABLE_VERSIONS.include?(version.to_s.downcase)
332
+ raise "The version: #{version} is not available. The available versions " \
333
+ "are: [#{AVAILABLE_VERSIONS.join(", ")}]"
334
+ end
335
+
336
+ require "#{FILE_DIR}/#{version.to_s.downcase}"
337
+ version_module = Google::Cloud::Monitoring
338
+ .constants
339
+ .select {|sym| sym.to_s.downcase == version.to_s.downcase}
340
+ .first
341
+ Google::Cloud::Monitoring.const_get(version_module)::UptimeCheck.new(*args, **kwargs)
342
+ end
343
+ end
186
344
  end
187
345
  end
188
346
  end
@@ -1,4 +1,4 @@
1
- # Copyright 2017 Google LLC
1
+ # Copyright 2018 Google LLC
2
2
  #
3
3
  # Licensed under the Apache License, Version 2.0 (the "License");
4
4
  # you may not use this file except in compliance with the License.
@@ -1,4 +1,4 @@
1
- # Copyright 2017 Google LLC
1
+ # Copyright 2018 Google LLC
2
2
  #
3
3
  # Licensed under the Apache License, Version 2.0 (the "License");
4
4
  # you may not use this file except in compliance with the License.
@@ -12,8 +12,11 @@
12
12
  # See the License for the specific language governing permissions and
13
13
  # limitations under the License.
14
14
 
15
+ require "google/cloud/monitoring/v3/alert_policy_service_client"
15
16
  require "google/cloud/monitoring/v3/group_service_client"
16
17
  require "google/cloud/monitoring/v3/metric_service_client"
18
+ require "google/cloud/monitoring/v3/notification_channel_service_client"
19
+ require "google/cloud/monitoring/v3/uptime_check_service_client"
17
20
 
18
21
  module Google
19
22
  module Cloud
@@ -23,9 +26,9 @@ module Google
23
26
  # # Ruby Client for Stackdriver Monitoring API ([Beta](https://github.com/GoogleCloudPlatform/google-cloud-ruby#versioning))
24
27
  #
25
28
  # [Stackdriver Monitoring API][Product Documentation]:
26
- # Manages your Stackdriver Monitoring data and configurations. Most projects must
27
- # be associated with a Stackdriver account, with a few exceptions as noted on the
28
- # individual method pages.
29
+ # Manages your Stackdriver Monitoring data and configurations. Most projects
30
+ # must be associated with a Stackdriver account, with a few exceptions as
31
+ # noted on the individual method pages.
29
32
  # - [Product Documentation][]
30
33
  #
31
34
  # ## Quick Start
@@ -33,8 +36,9 @@ module Google
33
36
  # steps:
34
37
  #
35
38
  # 1. [Select or create a Cloud Platform project.](https://console.cloud.google.com/project)
36
- # 2. [Enable the Stackdriver Monitoring API.](https://console.cloud.google.com/apis/api/monitoring)
37
- # 3. [Setup Authentication.](https://googlecloudplatform.github.io/google-cloud-ruby/#/docs/google-cloud/master/guides/authentication)
39
+ # 2. [Enable billing for your project.](https://cloud.google.com/billing/docs/how-to/modify-project#enable_billing_for_a_project)
40
+ # 3. [Enable the Stackdriver Monitoring API.](https://console.cloud.google.com/apis/api/monitoring)
41
+ # 4. [Setup Authentication.](https://googlecloudplatform.github.io/google-cloud-ruby/#/docs/google-cloud/master/guides/authentication)
38
42
  #
39
43
  # ### Preview
40
44
  # #### MetricServiceClient
@@ -71,6 +75,61 @@ module Google
71
75
  module V3
72
76
  # rubocop:enable LineLength
73
77
 
78
+ module AlertPolicy
79
+ ##
80
+ # The AlertPolicyService API is used to manage (list, create, delete,
81
+ # edit) alert policies in Stackdriver Monitoring. An alerting policy is
82
+ # a description of the conditions under which some aspect of your
83
+ # system is considered to be "unhealthy" and the ways to notify
84
+ # people or services about this state. In addition to using this API, alert
85
+ # policies can also be managed through
86
+ # [Stackdriver Monitoring](https://cloud.google.com/monitoring/docs/),
87
+ # which can be reached by clicking the "Monitoring" tab in
88
+ # [Cloud Console](https://console.cloud.google.com/).
89
+ #
90
+ # @param credentials [Google::Auth::Credentials, String, Hash, GRPC::Core::Channel, GRPC::Core::ChannelCredentials, Proc]
91
+ # Provides the means for authenticating requests made by the client. This parameter can
92
+ # be many types.
93
+ # A `Google::Auth::Credentials` uses a the properties of its represented keyfile for
94
+ # authenticating requests made by this client.
95
+ # A `String` will be treated as the path to the keyfile to be used for the construction of
96
+ # credentials for this client.
97
+ # A `Hash` will be treated as the contents of a keyfile to be used for the construction of
98
+ # credentials for this client.
99
+ # A `GRPC::Core::Channel` will be used to make calls through.
100
+ # A `GRPC::Core::ChannelCredentials` for the setting up the RPC client. The channel credentials
101
+ # should already be composed with a `GRPC::Core::CallCredentials` object.
102
+ # A `Proc` will be used as an updater_proc for the Grpc channel. The proc transforms the
103
+ # metadata for requests, generally, to give OAuth credentials.
104
+ # @param scopes [Array<String>]
105
+ # The OAuth scopes for this service. This parameter is ignored if
106
+ # an updater_proc is supplied.
107
+ # @param client_config [Hash]
108
+ # A Hash for call options for each method. See
109
+ # Google::Gax#construct_settings for the structure of
110
+ # this data. Falls back to the default config if not specified
111
+ # or the specified config is missing data points.
112
+ # @param timeout [Numeric]
113
+ # The default timeout, in seconds, for calls made through this client.
114
+ def self.new \
115
+ credentials: nil,
116
+ scopes: nil,
117
+ client_config: nil,
118
+ timeout: nil,
119
+ lib_name: nil,
120
+ lib_version: nil
121
+ kwargs = {
122
+ credentials: credentials,
123
+ scopes: scopes,
124
+ client_config: client_config,
125
+ timeout: timeout,
126
+ lib_name: lib_name,
127
+ lib_version: lib_version
128
+ }.select { |_, v| v != nil }
129
+ Google::Cloud::Monitoring::V3::AlertPolicyServiceClient.new(**kwargs)
130
+ end
131
+ end
132
+
74
133
  module Group
75
134
  ##
76
135
  # The Group API lets you inspect and manage your
@@ -111,11 +170,6 @@ module Google
111
170
  # @param timeout [Numeric]
112
171
  # The default timeout, in seconds, for calls made through this client.
113
172
  def self.new \
114
- service_path: nil,
115
- port: nil,
116
- channel: nil,
117
- chan_creds: nil,
118
- updater_proc: nil,
119
173
  credentials: nil,
120
174
  scopes: nil,
121
175
  client_config: nil,
@@ -123,11 +177,6 @@ module Google
123
177
  lib_name: nil,
124
178
  lib_version: nil
125
179
  kwargs = {
126
- service_path: service_path,
127
- port: port,
128
- channel: channel,
129
- chan_creds: chan_creds,
130
- updater_proc: updater_proc,
131
180
  credentials: credentials,
132
181
  scopes: scopes,
133
182
  client_config: client_config,
@@ -169,11 +218,6 @@ module Google
169
218
  # @param timeout [Numeric]
170
219
  # The default timeout, in seconds, for calls made through this client.
171
220
  def self.new \
172
- service_path: nil,
173
- port: nil,
174
- channel: nil,
175
- chan_creds: nil,
176
- updater_proc: nil,
177
221
  credentials: nil,
178
222
  scopes: nil,
179
223
  client_config: nil,
@@ -181,11 +225,6 @@ module Google
181
225
  lib_name: nil,
182
226
  lib_version: nil
183
227
  kwargs = {
184
- service_path: service_path,
185
- port: port,
186
- channel: channel,
187
- chan_creds: chan_creds,
188
- updater_proc: updater_proc,
189
228
  credentials: credentials,
190
229
  scopes: scopes,
191
230
  client_config: client_config,
@@ -196,6 +235,108 @@ module Google
196
235
  Google::Cloud::Monitoring::V3::MetricServiceClient.new(**kwargs)
197
236
  end
198
237
  end
238
+
239
+ module NotificationChannel
240
+ ##
241
+ # The Notification Channel API provides access to configuration that
242
+ # controls how messages related to incidents are sent.
243
+ #
244
+ # @param credentials [Google::Auth::Credentials, String, Hash, GRPC::Core::Channel, GRPC::Core::ChannelCredentials, Proc]
245
+ # Provides the means for authenticating requests made by the client. This parameter can
246
+ # be many types.
247
+ # A `Google::Auth::Credentials` uses a the properties of its represented keyfile for
248
+ # authenticating requests made by this client.
249
+ # A `String` will be treated as the path to the keyfile to be used for the construction of
250
+ # credentials for this client.
251
+ # A `Hash` will be treated as the contents of a keyfile to be used for the construction of
252
+ # credentials for this client.
253
+ # A `GRPC::Core::Channel` will be used to make calls through.
254
+ # A `GRPC::Core::ChannelCredentials` for the setting up the RPC client. The channel credentials
255
+ # should already be composed with a `GRPC::Core::CallCredentials` object.
256
+ # A `Proc` will be used as an updater_proc for the Grpc channel. The proc transforms the
257
+ # metadata for requests, generally, to give OAuth credentials.
258
+ # @param scopes [Array<String>]
259
+ # The OAuth scopes for this service. This parameter is ignored if
260
+ # an updater_proc is supplied.
261
+ # @param client_config [Hash]
262
+ # A Hash for call options for each method. See
263
+ # Google::Gax#construct_settings for the structure of
264
+ # this data. Falls back to the default config if not specified
265
+ # or the specified config is missing data points.
266
+ # @param timeout [Numeric]
267
+ # The default timeout, in seconds, for calls made through this client.
268
+ def self.new \
269
+ credentials: nil,
270
+ scopes: nil,
271
+ client_config: nil,
272
+ timeout: nil,
273
+ lib_name: nil,
274
+ lib_version: nil
275
+ kwargs = {
276
+ credentials: credentials,
277
+ scopes: scopes,
278
+ client_config: client_config,
279
+ timeout: timeout,
280
+ lib_name: lib_name,
281
+ lib_version: lib_version
282
+ }.select { |_, v| v != nil }
283
+ Google::Cloud::Monitoring::V3::NotificationChannelServiceClient.new(**kwargs)
284
+ end
285
+ end
286
+
287
+ module UptimeCheck
288
+ ##
289
+ # The UptimeCheckService API is used to manage (list, create, delete, edit)
290
+ # uptime check configurations in the Stackdriver Monitoring product. An uptime
291
+ # check is a piece of configuration that determines which resources and
292
+ # services to monitor for availability. These configurations can also be
293
+ # configured interactively by navigating to the [Cloud Console]
294
+ # (http://console.cloud.google.com), selecting the appropriate project,
295
+ # clicking on "Monitoring" on the left-hand side to navigate to Stackdriver,
296
+ # and then clicking on "Uptime".
297
+ #
298
+ # @param credentials [Google::Auth::Credentials, String, Hash, GRPC::Core::Channel, GRPC::Core::ChannelCredentials, Proc]
299
+ # Provides the means for authenticating requests made by the client. This parameter can
300
+ # be many types.
301
+ # A `Google::Auth::Credentials` uses a the properties of its represented keyfile for
302
+ # authenticating requests made by this client.
303
+ # A `String` will be treated as the path to the keyfile to be used for the construction of
304
+ # credentials for this client.
305
+ # A `Hash` will be treated as the contents of a keyfile to be used for the construction of
306
+ # credentials for this client.
307
+ # A `GRPC::Core::Channel` will be used to make calls through.
308
+ # A `GRPC::Core::ChannelCredentials` for the setting up the RPC client. The channel credentials
309
+ # should already be composed with a `GRPC::Core::CallCredentials` object.
310
+ # A `Proc` will be used as an updater_proc for the Grpc channel. The proc transforms the
311
+ # metadata for requests, generally, to give OAuth credentials.
312
+ # @param scopes [Array<String>]
313
+ # The OAuth scopes for this service. This parameter is ignored if
314
+ # an updater_proc is supplied.
315
+ # @param client_config [Hash]
316
+ # A Hash for call options for each method. See
317
+ # Google::Gax#construct_settings for the structure of
318
+ # this data. Falls back to the default config if not specified
319
+ # or the specified config is missing data points.
320
+ # @param timeout [Numeric]
321
+ # The default timeout, in seconds, for calls made through this client.
322
+ def self.new \
323
+ credentials: nil,
324
+ scopes: nil,
325
+ client_config: nil,
326
+ timeout: nil,
327
+ lib_name: nil,
328
+ lib_version: nil
329
+ kwargs = {
330
+ credentials: credentials,
331
+ scopes: scopes,
332
+ client_config: client_config,
333
+ timeout: timeout,
334
+ lib_name: lib_name,
335
+ lib_version: lib_version
336
+ }.select { |_, v| v != nil }
337
+ Google::Cloud::Monitoring::V3::UptimeCheckServiceClient.new(**kwargs)
338
+ end
339
+ end
199
340
  end
200
341
  end
201
342
  end