google-cloud-monitoring-dashboard-v1 0.6.4 → 0.6.5

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: 4e25a98f462e111db103cae38aa9c6735bbc89d4fa757df8d7965a30f9a4e002
4
- data.tar.gz: c6be50118954767cf9ecf0f5a7abd15a175570ce129822218239084b29115249
3
+ metadata.gz: d07f5493bdabf286a7a764ac089fdacb6028704c152ccad44380e47371d20219
4
+ data.tar.gz: 5eb799747b24539301c252dbfacd50d789d1560b3e7e21904c6caf0971216cc1
5
5
  SHA512:
6
- metadata.gz: dce39421dbad22190d3116fec3d6748e1d49fffa4678633bb63d64cb515deced366e888d21e96578bea58819b3b9baa9252c857386761b5111928d79968ebb8a
7
- data.tar.gz: d312ccd9724113951ab337ed0d16c928f945f3fbac737fcfcf971849a7198b70ccbffd389a43b9d93c585aa2329c86af2b7bfa76ca88be8292c6dca736e4a41e
6
+ metadata.gz: 8c4dd80ea4ad8038e149dcb6c81e0e5b8b4e561dfd0cc245a3e40b0a9a6a6312dd5ed7b6a2a440d007c8b92a7a480b8b002fe130f76ed16f45de404075b816ff
7
+ data.tar.gz: 1ab55106c237de847e7be1bde42bda70cb532b2e2b4245484dff726fbbef680263dd404199e2c55ff4ac5ea5f36d28bbe7ad00bb9a1cdfd44c463b3e30c03057
@@ -196,6 +196,21 @@ module Google
196
196
  #
197
197
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
198
198
  #
199
+ # @example Basic example
200
+ # require "google/cloud/monitoring/dashboard/v1"
201
+ #
202
+ # # Create a client object. The client can be reused for multiple calls.
203
+ # client = Google::Cloud::Monitoring::Dashboard::V1::DashboardsService::Client.new
204
+ #
205
+ # # Create a request. To set request fields, pass in keyword arguments.
206
+ # request = Google::Cloud::Monitoring::Dashboard::V1::CreateDashboardRequest.new
207
+ #
208
+ # # Call the create_dashboard method.
209
+ # result = client.create_dashboard request
210
+ #
211
+ # # The returned object is of type Google::Cloud::Monitoring::Dashboard::V1::Dashboard.
212
+ # p result
213
+ #
199
214
  def create_dashboard request, options = nil
200
215
  raise ::ArgumentError, "request must be provided" if request.nil?
201
216
 
@@ -213,9 +228,11 @@ module Google
213
228
  gapic_version: ::Google::Cloud::Monitoring::Dashboard::V1::VERSION
214
229
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
215
230
 
216
- header_params = {
217
- "parent" => request.parent
218
- }
231
+ header_params = {}
232
+ if request.parent
233
+ header_params["parent"] = request.parent
234
+ end
235
+
219
236
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
220
237
  metadata[:"x-goog-request-params"] ||= request_params_header
221
238
 
@@ -277,6 +294,27 @@ module Google
277
294
  #
278
295
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
279
296
  #
297
+ # @example Basic example
298
+ # require "google/cloud/monitoring/dashboard/v1"
299
+ #
300
+ # # Create a client object. The client can be reused for multiple calls.
301
+ # client = Google::Cloud::Monitoring::Dashboard::V1::DashboardsService::Client.new
302
+ #
303
+ # # Create a request. To set request fields, pass in keyword arguments.
304
+ # request = Google::Cloud::Monitoring::Dashboard::V1::ListDashboardsRequest.new
305
+ #
306
+ # # Call the list_dashboards method.
307
+ # result = client.list_dashboards request
308
+ #
309
+ # # The returned object is of type Gapic::PagedEnumerable. You can
310
+ # # iterate over all elements by calling #each, and the enumerable
311
+ # # will lazily make API calls to fetch subsequent pages. Other
312
+ # # methods are also available for managing paging directly.
313
+ # result.each do |response|
314
+ # # Each element is of type ::Google::Cloud::Monitoring::Dashboard::V1::Dashboard.
315
+ # p response
316
+ # end
317
+ #
280
318
  def list_dashboards request, options = nil
281
319
  raise ::ArgumentError, "request must be provided" if request.nil?
282
320
 
@@ -294,9 +332,11 @@ module Google
294
332
  gapic_version: ::Google::Cloud::Monitoring::Dashboard::V1::VERSION
295
333
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
296
334
 
297
- header_params = {
298
- "parent" => request.parent
299
- }
335
+ header_params = {}
336
+ if request.parent
337
+ header_params["parent"] = request.parent
338
+ end
339
+
300
340
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
301
341
  metadata[:"x-goog-request-params"] ||= request_params_header
302
342
 
@@ -354,6 +394,21 @@ module Google
354
394
  #
355
395
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
356
396
  #
397
+ # @example Basic example
398
+ # require "google/cloud/monitoring/dashboard/v1"
399
+ #
400
+ # # Create a client object. The client can be reused for multiple calls.
401
+ # client = Google::Cloud::Monitoring::Dashboard::V1::DashboardsService::Client.new
402
+ #
403
+ # # Create a request. To set request fields, pass in keyword arguments.
404
+ # request = Google::Cloud::Monitoring::Dashboard::V1::GetDashboardRequest.new
405
+ #
406
+ # # Call the get_dashboard method.
407
+ # result = client.get_dashboard request
408
+ #
409
+ # # The returned object is of type Google::Cloud::Monitoring::Dashboard::V1::Dashboard.
410
+ # p result
411
+ #
357
412
  def get_dashboard request, options = nil
358
413
  raise ::ArgumentError, "request must be provided" if request.nil?
359
414
 
@@ -371,9 +426,11 @@ module Google
371
426
  gapic_version: ::Google::Cloud::Monitoring::Dashboard::V1::VERSION
372
427
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
373
428
 
374
- header_params = {
375
- "name" => request.name
376
- }
429
+ header_params = {}
430
+ if request.name
431
+ header_params["name"] = request.name
432
+ end
433
+
377
434
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
378
435
  metadata[:"x-goog-request-params"] ||= request_params_header
379
436
 
@@ -428,6 +485,21 @@ module Google
428
485
  #
429
486
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
430
487
  #
488
+ # @example Basic example
489
+ # require "google/cloud/monitoring/dashboard/v1"
490
+ #
491
+ # # Create a client object. The client can be reused for multiple calls.
492
+ # client = Google::Cloud::Monitoring::Dashboard::V1::DashboardsService::Client.new
493
+ #
494
+ # # Create a request. To set request fields, pass in keyword arguments.
495
+ # request = Google::Cloud::Monitoring::Dashboard::V1::DeleteDashboardRequest.new
496
+ #
497
+ # # Call the delete_dashboard method.
498
+ # result = client.delete_dashboard request
499
+ #
500
+ # # The returned object is of type Google::Protobuf::Empty.
501
+ # p result
502
+ #
431
503
  def delete_dashboard request, options = nil
432
504
  raise ::ArgumentError, "request must be provided" if request.nil?
433
505
 
@@ -445,9 +517,11 @@ module Google
445
517
  gapic_version: ::Google::Cloud::Monitoring::Dashboard::V1::VERSION
446
518
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
447
519
 
448
- header_params = {
449
- "name" => request.name
450
- }
520
+ header_params = {}
521
+ if request.name
522
+ header_params["name"] = request.name
523
+ end
524
+
451
525
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
452
526
  metadata[:"x-goog-request-params"] ||= request_params_header
453
527
 
@@ -503,6 +577,21 @@ module Google
503
577
  #
504
578
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
505
579
  #
580
+ # @example Basic example
581
+ # require "google/cloud/monitoring/dashboard/v1"
582
+ #
583
+ # # Create a client object. The client can be reused for multiple calls.
584
+ # client = Google::Cloud::Monitoring::Dashboard::V1::DashboardsService::Client.new
585
+ #
586
+ # # Create a request. To set request fields, pass in keyword arguments.
587
+ # request = Google::Cloud::Monitoring::Dashboard::V1::UpdateDashboardRequest.new
588
+ #
589
+ # # Call the update_dashboard method.
590
+ # result = client.update_dashboard request
591
+ #
592
+ # # The returned object is of type Google::Cloud::Monitoring::Dashboard::V1::Dashboard.
593
+ # p result
594
+ #
506
595
  def update_dashboard request, options = nil
507
596
  raise ::ArgumentError, "request must be provided" if request.nil?
508
597
 
@@ -520,9 +609,11 @@ module Google
520
609
  gapic_version: ::Google::Cloud::Monitoring::Dashboard::V1::VERSION
521
610
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
522
611
 
523
- header_params = {
524
- "dashboard.name" => request.dashboard.name
525
- }
612
+ header_params = {}
613
+ if request.dashboard&.name
614
+ header_params["dashboard.name"] = request.dashboard.name
615
+ end
616
+
526
617
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
527
618
  metadata[:"x-goog-request-params"] ||= request_params_header
528
619
 
@@ -22,7 +22,7 @@ module Google
22
22
  module Monitoring
23
23
  module Dashboard
24
24
  module V1
25
- VERSION = "0.6.4"
25
+ VERSION = "0.6.5"
26
26
  end
27
27
  end
28
28
  end
@@ -1,10 +1,10 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/monitoring/dashboard/v1/alertchart.proto
3
3
 
4
- require 'google/protobuf'
5
-
6
4
  require 'google/api/field_behavior_pb'
7
5
  require 'google/api/resource_pb'
6
+ require 'google/protobuf'
7
+
8
8
  Google::Protobuf::DescriptorPool.generated_pool.build do
9
9
  add_file("google/monitoring/dashboard/v1/alertchart.proto", :syntax => :proto3) do
10
10
  add_message "google.monitoring.dashboard.v1.AlertChart" do
@@ -1,10 +1,10 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/monitoring/dashboard/v1/common.proto
3
3
 
4
- require 'google/protobuf'
5
-
6
4
  require 'google/api/distribution_pb'
7
5
  require 'google/protobuf/duration_pb'
6
+ require 'google/protobuf'
7
+
8
8
  Google::Protobuf::DescriptorPool.generated_pool.build do
9
9
  add_file("google/monitoring/dashboard/v1/common.proto", :syntax => :proto3) do
10
10
  add_message "google.monitoring.dashboard.v1.Aggregation" do
@@ -1,11 +1,11 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/monitoring/dashboard/v1/dashboard.proto
3
3
 
4
- require 'google/protobuf'
5
-
6
4
  require 'google/api/field_behavior_pb'
7
5
  require 'google/api/resource_pb'
8
6
  require 'google/monitoring/dashboard/v1/layouts_pb'
7
+ require 'google/protobuf'
8
+
9
9
  Google::Protobuf::DescriptorPool.generated_pool.build do
10
10
  add_file("google/monitoring/dashboard/v1/dashboard.proto", :syntax => :proto3) do
11
11
  add_message "google.monitoring.dashboard.v1.Dashboard" do
@@ -1,8 +1,6 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/monitoring/dashboard/v1/dashboards_service.proto
3
3
 
4
- require 'google/protobuf'
5
-
6
4
  require 'google/api/annotations_pb'
7
5
  require 'google/api/field_behavior_pb'
8
6
  require 'google/api/resource_pb'
@@ -10,6 +8,8 @@ require 'google/monitoring/dashboard/v1/dashboard_pb'
10
8
  require 'google/protobuf/empty_pb'
11
9
  require 'google/protobuf/field_mask_pb'
12
10
  require 'google/api/client_pb'
11
+ require 'google/protobuf'
12
+
13
13
  Google::Protobuf::DescriptorPool.generated_pool.build do
14
14
  add_file("google/monitoring/dashboard/v1/dashboards_service.proto", :syntax => :proto3) do
15
15
  add_message "google.monitoring.dashboard.v1.CreateDashboardRequest" do
@@ -29,7 +29,7 @@ module Google
29
29
  # widgets in a specific layout.
30
30
  class Service
31
31
 
32
- include GRPC::GenericService
32
+ include ::GRPC::GenericService
33
33
 
34
34
  self.marshal_class_method = :encode
35
35
  self.unmarshal_class_method = :decode
@@ -1,9 +1,9 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/monitoring/dashboard/v1/drilldowns.proto
3
3
 
4
+ require 'google/monitoring/dashboard/v1/common_pb'
4
5
  require 'google/protobuf'
5
6
 
6
- require 'google/monitoring/dashboard/v1/common_pb'
7
7
  Google::Protobuf::DescriptorPool.generated_pool.build do
8
8
  add_file("google/monitoring/dashboard/v1/drilldowns.proto", :syntax => :proto3) do
9
9
  end
@@ -1,9 +1,9 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/monitoring/dashboard/v1/layouts.proto
3
3
 
4
+ require 'google/monitoring/dashboard/v1/widget_pb'
4
5
  require 'google/protobuf'
5
6
 
6
- require 'google/monitoring/dashboard/v1/widget_pb'
7
7
  Google::Protobuf::DescriptorPool.generated_pool.build do
8
8
  add_file("google/monitoring/dashboard/v1/layouts.proto", :syntax => :proto3) do
9
9
  add_message "google.monitoring.dashboard.v1.GridLayout" do
@@ -1,10 +1,10 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/monitoring/dashboard/v1/metrics.proto
3
3
 
4
- require 'google/protobuf'
5
-
6
4
  require 'google/api/field_behavior_pb'
7
5
  require 'google/monitoring/dashboard/v1/common_pb'
6
+ require 'google/protobuf'
7
+
8
8
  Google::Protobuf::DescriptorPool.generated_pool.build do
9
9
  add_file("google/monitoring/dashboard/v1/metrics.proto", :syntax => :proto3) do
10
10
  add_message "google.monitoring.dashboard.v1.TimeSeriesQuery" do
@@ -1,12 +1,12 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/monitoring/dashboard/v1/scorecard.proto
3
3
 
4
- require 'google/protobuf'
5
-
6
4
  require 'google/api/field_behavior_pb'
7
5
  require 'google/monitoring/dashboard/v1/metrics_pb'
8
6
  require 'google/protobuf/duration_pb'
9
7
  require 'google/protobuf/empty_pb'
8
+ require 'google/protobuf'
9
+
10
10
  Google::Protobuf::DescriptorPool.generated_pool.build do
11
11
  add_file("google/monitoring/dashboard/v1/scorecard.proto", :syntax => :proto3) do
12
12
  add_message "google.monitoring.dashboard.v1.Scorecard" do
@@ -1,14 +1,14 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/monitoring/dashboard/v1/widget.proto
3
3
 
4
- require 'google/protobuf'
5
-
6
4
  require 'google/api/field_behavior_pb'
7
5
  require 'google/monitoring/dashboard/v1/alertchart_pb'
8
6
  require 'google/monitoring/dashboard/v1/scorecard_pb'
9
7
  require 'google/monitoring/dashboard/v1/text_pb'
10
8
  require 'google/monitoring/dashboard/v1/xychart_pb'
11
9
  require 'google/protobuf/empty_pb'
10
+ require 'google/protobuf'
11
+
12
12
  Google::Protobuf::DescriptorPool.generated_pool.build do
13
13
  add_file("google/monitoring/dashboard/v1/widget.proto", :syntax => :proto3) do
14
14
  add_message "google.monitoring.dashboard.v1.Widget" do
@@ -1,11 +1,11 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/monitoring/dashboard/v1/xychart.proto
3
3
 
4
- require 'google/protobuf'
5
-
6
4
  require 'google/api/field_behavior_pb'
7
5
  require 'google/monitoring/dashboard/v1/metrics_pb'
8
6
  require 'google/protobuf/duration_pb'
7
+ require 'google/protobuf'
8
+
9
9
  Google::Protobuf::DescriptorPool.generated_pool.build do
10
10
  add_file("google/monitoring/dashboard/v1/xychart.proto", :syntax => :proto3) do
11
11
  add_message "google.monitoring.dashboard.v1.XyChart" do
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-monitoring-dashboard-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.4
4
+ version: 0.6.5
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-08-30 00:00:00.000000000 Z
11
+ date: 2021-11-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common