google-cloud-monitoring-dashboard-v1 0.6.2 → 0.6.6

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: 8738bc92d8f84c050a3932c6ef0baf8d065aa9c830367e2df76d2ed456bc7137
4
- data.tar.gz: 6974c48618cd7b7f529c0397a03023eeea9878e1a429d36a2ed6a79f68208f76
3
+ metadata.gz: f7957ad5be04ea070779f02066047bdf05178b0db27a8f19b91fa9246b810814
4
+ data.tar.gz: 4ab8b28187411616568b0bb1e7a73045e8bd99d6469ea859737415361c8b9c1e
5
5
  SHA512:
6
- metadata.gz: 0a4d65a5d26a840d56a6087504839b6a60e1375b0523a77a9f29220ac26418f43b14302446a62b9380a9d4987736ca1aa8b524a804176426b988397704c187a2
7
- data.tar.gz: 8a2bc4b645872f6dca4169b4cbe10495d78ee0bb975c5aed01606d8f52ce62a01e58182c05b01c194009c25ea862bbf4aba8913249062414addd37ea27a27314
6
+ metadata.gz: 86b6aa50d6565ae768c2cec63dc6c6ddf9a4a80b6d4cd2248aecf16d7421e7378dab22c9da7c292d409cf24821a58d6c9cabfc92e106ca756548221baf7dd3b1
7
+ data.tar.gz: c04a5e62708409587a25cff1564384d97cba587a9023c07a867eceebc505913c21b5ae9d0abe2a6e64ceedbbf32fedde040e6794ddde50099f7ad0c0ff677fb1
data/.yardopts CHANGED
@@ -1,5 +1,5 @@
1
1
  --no-private
2
- --title=Cloud Monitoring Dashboards V1 API
2
+ --title="Cloud Monitoring Dashboards V1 API"
3
3
  --exclude _pb\.rb$
4
4
  --markup markdown
5
5
  --markup-provider redcarpet
data/AUTHENTICATION.md CHANGED
@@ -120,15 +120,6 @@ To configure your system for this, simply:
120
120
  **NOTE:** This is _not_ recommended for running in production. The Cloud SDK
121
121
  *should* only be used during development.
122
122
 
123
- [gce-how-to]: https://cloud.google.com/compute/docs/authentication#using
124
- [dev-console]: https://console.cloud.google.com/project
125
-
126
- [enable-apis]: https://raw.githubusercontent.com/GoogleCloudPlatform/gcloud-common/master/authentication/enable-apis.png
127
-
128
- [create-new-service-account]: https://raw.githubusercontent.com/GoogleCloudPlatform/gcloud-common/master/authentication/create-new-service-account.png
129
- [create-new-service-account-existing-keys]: https://raw.githubusercontent.com/GoogleCloudPlatform/gcloud-common/master/authentication/create-new-service-account-existing-keys.png
130
- [reuse-service-account]: https://raw.githubusercontent.com/GoogleCloudPlatform/gcloud-common/master/authentication/reuse-service-account.png
131
-
132
123
  ## Creating a Service Account
133
124
 
134
125
  Google Cloud requires **Service Account Credentials** to
@@ -139,31 +130,22 @@ If you are not running this client within
139
130
  [Google Cloud Platform environments](#google-cloud-platform-environments), you
140
131
  need a Google Developers service account.
141
132
 
142
- 1. Visit the [Google Developers Console][dev-console].
133
+ 1. Visit the [Google Cloud Console](https://console.cloud.google.com/project).
143
134
  2. Create a new project or click on an existing project.
144
- 3. Activate the slide-out navigation tray and select **API Manager**. From
135
+ 3. Activate the menu in the upper left and select **APIs & Services**. From
145
136
  here, you will enable the APIs that your application requires.
146
137
 
147
- ![Enable the APIs that your application requires][enable-apis]
148
-
149
138
  *Note: You may need to enable billing in order to use these services.*
150
139
 
151
140
  4. Select **Credentials** from the side navigation.
152
141
 
153
- You should see a screen like one of the following.
154
-
155
- ![Create a new service account][create-new-service-account]
156
-
157
- ![Create a new service account With Existing Keys][create-new-service-account-existing-keys]
158
-
159
- Find the "Add credentials" drop down and select "Service account" to be
160
- guided through downloading a new JSON key file.
142
+ Find the "Create credentials" drop down near the top of the page, and select
143
+ "Service account" to be guided through downloading a new JSON key file.
161
144
 
162
145
  If you want to re-use an existing service account, you can easily generate a
163
- new key file. Just select the account you wish to re-use, and click "Generate
164
- new JSON key":
165
-
166
- ![Re-use an existing service account][reuse-service-account]
146
+ new key file. Just select the account you wish to re-use, click the pencil
147
+ tool on the right side to edit the service account, select the **Keys** tab,
148
+ and then select **Add Key**.
167
149
 
168
150
  The key file you download will be used by this library to authenticate API
169
151
  requests and should be stored in a secure location.
data/README.md CHANGED
@@ -9,7 +9,7 @@ https://github.com/googleapis/google-cloud-ruby
9
9
  This gem is a _versioned_ client. It provides basic client classes for a
10
10
  specific version of the Cloud Monitoring Dashboards V1 API. Most users should consider using
11
11
  the main client gem,
12
- [google-cloud-monitoring-dashboard](https://rubygems.org/gems/google-cloud-monitoring-dashboard).
12
+ [google-cloud-monitoring](https://rubygems.org/gems/google-cloud-monitoring).
13
13
  See the section below titled *Which client should I use?* for more information.
14
14
 
15
15
  ## Installation
@@ -83,7 +83,7 @@ about the Ruby support schedule.
83
83
  ## Which client should I use?
84
84
 
85
85
  Most modern Ruby client libraries for Google APIs come in two flavors: the main
86
- client library with a name such as `google-cloud-monitoring-dashboard`,
86
+ client library with a name such as `google-cloud-monitoring`,
87
87
  and lower-level _versioned_ client libraries with names such as
88
88
  `google-cloud-monitoring-dashboard-v1`.
89
89
  _In most cases, you should install the main client._
@@ -110,7 +110,7 @@ service version.
110
110
 
111
111
  We recommend that most users install the main client gem for a service. You can
112
112
  identify this gem as the one _without_ a version in its name, e.g.
113
- `google-cloud-monitoring-dashboard`.
113
+ `google-cloud-monitoring`.
114
114
  The main client is recommended because it will embody the best practices for
115
115
  accessing the service, and may also provide more convenient interfaces or
116
116
  tighter integration into frameworks and third-party libraries. In addition, the
@@ -43,13 +43,12 @@ module Google
43
43
  # See {::Google::Cloud::Monitoring::Dashboard::V1::DashboardsService::Client::Configuration}
44
44
  # for a description of the configuration fields.
45
45
  #
46
- # ## Example
46
+ # @example
47
47
  #
48
- # To modify the configuration for all DashboardsService clients:
49
- #
50
- # ::Google::Cloud::Monitoring::Dashboard::V1::DashboardsService::Client.configure do |config|
51
- # config.timeout = 10.0
52
- # end
48
+ # # Modify the configuration for all DashboardsService clients
49
+ # ::Google::Cloud::Monitoring::Dashboard::V1::DashboardsService::Client.configure do |config|
50
+ # config.timeout = 10.0
51
+ # end
53
52
  #
54
53
  # @yield [config] Configure the Client client.
55
54
  # @yieldparam config [Client::Configuration]
@@ -107,19 +106,15 @@ module Google
107
106
  ##
108
107
  # Create a new DashboardsService client object.
109
108
  #
110
- # ## Examples
111
- #
112
- # To create a new DashboardsService client with the default
113
- # configuration:
114
- #
115
- # client = ::Google::Cloud::Monitoring::Dashboard::V1::DashboardsService::Client.new
109
+ # @example
116
110
  #
117
- # To create a new DashboardsService client with a custom
118
- # configuration:
111
+ # # Create a client using the default configuration
112
+ # client = ::Google::Cloud::Monitoring::Dashboard::V1::DashboardsService::Client.new
119
113
  #
120
- # client = ::Google::Cloud::Monitoring::Dashboard::V1::DashboardsService::Client.new do |config|
121
- # config.timeout = 10.0
122
- # end
114
+ # # Create a client using a custom configuration
115
+ # client = ::Google::Cloud::Monitoring::Dashboard::V1::DashboardsService::Client.new do |config|
116
+ # config.timeout = 10.0
117
+ # end
123
118
  #
124
119
  # @yield [config] Configure the DashboardsService client.
125
120
  # @yieldparam config [Client::Configuration]
@@ -139,10 +134,9 @@ module Google
139
134
 
140
135
  # Create credentials
141
136
  credentials = @config.credentials
142
- # Use self-signed JWT if the scope and endpoint are unchanged from default,
137
+ # Use self-signed JWT if the endpoint is unchanged from default,
143
138
  # but only if the default endpoint does not have a region prefix.
144
- enable_self_signed_jwt = @config.scope == Client.configure.scope &&
145
- @config.endpoint == Client.configure.endpoint &&
139
+ enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
146
140
  !@config.endpoint.split(".").first.include?("-")
147
141
  credentials ||= Credentials.default scope: @config.scope,
148
142
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -202,6 +196,21 @@ module Google
202
196
  #
203
197
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
204
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
+ #
205
214
  def create_dashboard request, options = nil
206
215
  raise ::ArgumentError, "request must be provided" if request.nil?
207
216
 
@@ -219,16 +228,20 @@ module Google
219
228
  gapic_version: ::Google::Cloud::Monitoring::Dashboard::V1::VERSION
220
229
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
221
230
 
222
- header_params = {
223
- "parent" => request.parent
224
- }
231
+ header_params = {}
232
+ if request.parent
233
+ header_params["parent"] = request.parent
234
+ end
235
+
225
236
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
226
237
  metadata[:"x-goog-request-params"] ||= request_params_header
227
238
 
228
239
  options.apply_defaults timeout: @config.rpcs.create_dashboard.timeout,
229
240
  metadata: metadata,
230
241
  retry_policy: @config.rpcs.create_dashboard.retry_policy
231
- options.apply_defaults metadata: @config.metadata,
242
+
243
+ options.apply_defaults timeout: @config.timeout,
244
+ metadata: @config.metadata,
232
245
  retry_policy: @config.retry_policy
233
246
 
234
247
  @dashboards_service_stub.call_rpc :create_dashboard, request, options: options do |response, operation|
@@ -281,6 +294,27 @@ module Google
281
294
  #
282
295
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
283
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
+ #
284
318
  def list_dashboards request, options = nil
285
319
  raise ::ArgumentError, "request must be provided" if request.nil?
286
320
 
@@ -298,16 +332,20 @@ module Google
298
332
  gapic_version: ::Google::Cloud::Monitoring::Dashboard::V1::VERSION
299
333
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
300
334
 
301
- header_params = {
302
- "parent" => request.parent
303
- }
335
+ header_params = {}
336
+ if request.parent
337
+ header_params["parent"] = request.parent
338
+ end
339
+
304
340
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
305
341
  metadata[:"x-goog-request-params"] ||= request_params_header
306
342
 
307
343
  options.apply_defaults timeout: @config.rpcs.list_dashboards.timeout,
308
344
  metadata: metadata,
309
345
  retry_policy: @config.rpcs.list_dashboards.retry_policy
310
- options.apply_defaults metadata: @config.metadata,
346
+
347
+ options.apply_defaults timeout: @config.timeout,
348
+ metadata: @config.metadata,
311
349
  retry_policy: @config.retry_policy
312
350
 
313
351
  @dashboards_service_stub.call_rpc :list_dashboards, request, options: options do |response, operation|
@@ -356,6 +394,21 @@ module Google
356
394
  #
357
395
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
358
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
+ #
359
412
  def get_dashboard request, options = nil
360
413
  raise ::ArgumentError, "request must be provided" if request.nil?
361
414
 
@@ -373,16 +426,20 @@ module Google
373
426
  gapic_version: ::Google::Cloud::Monitoring::Dashboard::V1::VERSION
374
427
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
375
428
 
376
- header_params = {
377
- "name" => request.name
378
- }
429
+ header_params = {}
430
+ if request.name
431
+ header_params["name"] = request.name
432
+ end
433
+
379
434
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
380
435
  metadata[:"x-goog-request-params"] ||= request_params_header
381
436
 
382
437
  options.apply_defaults timeout: @config.rpcs.get_dashboard.timeout,
383
438
  metadata: metadata,
384
439
  retry_policy: @config.rpcs.get_dashboard.retry_policy
385
- options.apply_defaults metadata: @config.metadata,
440
+
441
+ options.apply_defaults timeout: @config.timeout,
442
+ metadata: @config.metadata,
386
443
  retry_policy: @config.retry_policy
387
444
 
388
445
  @dashboards_service_stub.call_rpc :get_dashboard, request, options: options do |response, operation|
@@ -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,16 +517,20 @@ 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
 
454
528
  options.apply_defaults timeout: @config.rpcs.delete_dashboard.timeout,
455
529
  metadata: metadata,
456
530
  retry_policy: @config.rpcs.delete_dashboard.retry_policy
457
- options.apply_defaults metadata: @config.metadata,
531
+
532
+ options.apply_defaults timeout: @config.timeout,
533
+ metadata: @config.metadata,
458
534
  retry_policy: @config.retry_policy
459
535
 
460
536
  @dashboards_service_stub.call_rpc :delete_dashboard, request, options: options do |response, operation|
@@ -501,6 +577,21 @@ module Google
501
577
  #
502
578
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
503
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
+ #
504
595
  def update_dashboard request, options = nil
505
596
  raise ::ArgumentError, "request must be provided" if request.nil?
506
597
 
@@ -518,16 +609,20 @@ module Google
518
609
  gapic_version: ::Google::Cloud::Monitoring::Dashboard::V1::VERSION
519
610
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
520
611
 
521
- header_params = {
522
- "dashboard.name" => request.dashboard.name
523
- }
612
+ header_params = {}
613
+ if request.dashboard&.name
614
+ header_params["dashboard.name"] = request.dashboard.name
615
+ end
616
+
524
617
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
525
618
  metadata[:"x-goog-request-params"] ||= request_params_header
526
619
 
527
620
  options.apply_defaults timeout: @config.rpcs.update_dashboard.timeout,
528
621
  metadata: metadata,
529
622
  retry_policy: @config.rpcs.update_dashboard.retry_policy
530
- options.apply_defaults metadata: @config.metadata,
623
+
624
+ options.apply_defaults timeout: @config.timeout,
625
+ metadata: @config.metadata,
531
626
  retry_policy: @config.retry_policy
532
627
 
533
628
  @dashboards_service_stub.call_rpc :update_dashboard, request, options: options do |response, operation|
@@ -551,22 +646,21 @@ module Google
551
646
  # Configuration can be applied globally to all clients, or to a single client
552
647
  # on construction.
553
648
  #
554
- # # Examples
555
- #
556
- # To modify the global config, setting the timeout for create_dashboard
557
- # to 20 seconds, and all remaining timeouts to 10 seconds:
558
- #
559
- # ::Google::Cloud::Monitoring::Dashboard::V1::DashboardsService::Client.configure do |config|
560
- # config.timeout = 10.0
561
- # config.rpcs.create_dashboard.timeout = 20.0
562
- # end
563
- #
564
- # To apply the above configuration only to a new client:
565
- #
566
- # client = ::Google::Cloud::Monitoring::Dashboard::V1::DashboardsService::Client.new do |config|
567
- # config.timeout = 10.0
568
- # config.rpcs.create_dashboard.timeout = 20.0
569
- # end
649
+ # @example
650
+ #
651
+ # # Modify the global config, setting the timeout for
652
+ # # create_dashboard to 20 seconds,
653
+ # # and all remaining timeouts to 10 seconds.
654
+ # ::Google::Cloud::Monitoring::Dashboard::V1::DashboardsService::Client.configure do |config|
655
+ # config.timeout = 10.0
656
+ # config.rpcs.create_dashboard.timeout = 20.0
657
+ # end
658
+ #
659
+ # # Apply the above configuration only to a new client.
660
+ # client = ::Google::Cloud::Monitoring::Dashboard::V1::DashboardsService::Client.new do |config|
661
+ # config.timeout = 10.0
662
+ # config.rpcs.create_dashboard.timeout = 20.0
663
+ # end
570
664
  #
571
665
  # @!attribute [rw] endpoint
572
666
  # The hostname or hostname:port of the service endpoint.
@@ -22,7 +22,7 @@ module Google
22
22
  module Monitoring
23
23
  module Dashboard
24
24
  module V1
25
- VERSION = "0.6.2"
25
+ VERSION = "0.6.6"
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
@@ -33,11 +33,7 @@ module Google
33
33
  # // For Kubernetes resources, the format is {api group}/{kind}.
34
34
  # option (google.api.resource) = {
35
35
  # type: "pubsub.googleapis.com/Topic"
36
- # name_descriptor: {
37
- # pattern: "projects/{project}/topics/{topic}"
38
- # parent_type: "cloudresourcemanager.googleapis.com/Project"
39
- # parent_name_extractor: "projects/{project}"
40
- # }
36
+ # pattern: "projects/{project}/topics/{topic}"
41
37
  # };
42
38
  # }
43
39
  #
@@ -45,10 +41,7 @@ module Google
45
41
  #
46
42
  # resources:
47
43
  # - type: "pubsub.googleapis.com/Topic"
48
- # name_descriptor:
49
- # - pattern: "projects/{project}/topics/{topic}"
50
- # parent_type: "cloudresourcemanager.googleapis.com/Project"
51
- # parent_name_extractor: "projects/{project}"
44
+ # pattern: "projects/{project}/topics/{topic}"
52
45
  #
53
46
  # Sometimes, resources have multiple patterns, typically because they can
54
47
  # live under multiple parents.
@@ -58,26 +51,10 @@ module Google
58
51
  # message LogEntry {
59
52
  # option (google.api.resource) = {
60
53
  # type: "logging.googleapis.com/LogEntry"
61
- # name_descriptor: {
62
- # pattern: "projects/{project}/logs/{log}"
63
- # parent_type: "cloudresourcemanager.googleapis.com/Project"
64
- # parent_name_extractor: "projects/{project}"
65
- # }
66
- # name_descriptor: {
67
- # pattern: "folders/{folder}/logs/{log}"
68
- # parent_type: "cloudresourcemanager.googleapis.com/Folder"
69
- # parent_name_extractor: "folders/{folder}"
70
- # }
71
- # name_descriptor: {
72
- # pattern: "organizations/{organization}/logs/{log}"
73
- # parent_type: "cloudresourcemanager.googleapis.com/Organization"
74
- # parent_name_extractor: "organizations/{organization}"
75
- # }
76
- # name_descriptor: {
77
- # pattern: "billingAccounts/{billing_account}/logs/{log}"
78
- # parent_type: "billing.googleapis.com/BillingAccount"
79
- # parent_name_extractor: "billingAccounts/{billing_account}"
80
- # }
54
+ # pattern: "projects/{project}/logs/{log}"
55
+ # pattern: "folders/{folder}/logs/{log}"
56
+ # pattern: "organizations/{organization}/logs/{log}"
57
+ # pattern: "billingAccounts/{billing_account}/logs/{log}"
81
58
  # };
82
59
  # }
83
60
  #
@@ -85,48 +62,10 @@ module Google
85
62
  #
86
63
  # resources:
87
64
  # - type: 'logging.googleapis.com/LogEntry'
88
- # name_descriptor:
89
- # - pattern: "projects/{project}/logs/{log}"
90
- # parent_type: "cloudresourcemanager.googleapis.com/Project"
91
- # parent_name_extractor: "projects/{project}"
92
- # - pattern: "folders/{folder}/logs/{log}"
93
- # parent_type: "cloudresourcemanager.googleapis.com/Folder"
94
- # parent_name_extractor: "folders/{folder}"
95
- # - pattern: "organizations/{organization}/logs/{log}"
96
- # parent_type: "cloudresourcemanager.googleapis.com/Organization"
97
- # parent_name_extractor: "organizations/{organization}"
98
- # - pattern: "billingAccounts/{billing_account}/logs/{log}"
99
- # parent_type: "billing.googleapis.com/BillingAccount"
100
- # parent_name_extractor: "billingAccounts/{billing_account}"
101
- #
102
- # For flexible resources, the resource name doesn't contain parent names, but
103
- # the resource itself has parents for policy evaluation.
104
- #
105
- # Example:
106
- #
107
- # message Shelf {
108
- # option (google.api.resource) = {
109
- # type: "library.googleapis.com/Shelf"
110
- # name_descriptor: {
111
- # pattern: "shelves/{shelf}"
112
- # parent_type: "cloudresourcemanager.googleapis.com/Project"
113
- # }
114
- # name_descriptor: {
115
- # pattern: "shelves/{shelf}"
116
- # parent_type: "cloudresourcemanager.googleapis.com/Folder"
117
- # }
118
- # };
119
- # }
120
- #
121
- # The ResourceDescriptor Yaml config will look like:
122
- #
123
- # resources:
124
- # - type: 'library.googleapis.com/Shelf'
125
- # name_descriptor:
126
- # - pattern: "shelves/{shelf}"
127
- # parent_type: "cloudresourcemanager.googleapis.com/Project"
128
- # - pattern: "shelves/{shelf}"
129
- # parent_type: "cloudresourcemanager.googleapis.com/Folder"
65
+ # pattern: "projects/{project}/logs/{log}"
66
+ # pattern: "folders/{folder}/logs/{log}"
67
+ # pattern: "organizations/{organization}/logs/{log}"
68
+ # pattern: "billingAccounts/{billing_account}/logs/{log}"
130
69
  # @!attribute [rw] type
131
70
  # @return [::String]
132
71
  # The resource type. It must be in the format of
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.2
4
+ version: 0.6.6
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-21 00:00:00.000000000 Z
11
+ date: 2022-01-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
@@ -160,8 +160,7 @@ description: Cloud Monitoring collects metrics, events, and metadata from Google
160
160
  Amazon Web Services (AWS), hosted uptime probes, and application instrumentation.
161
161
  The Dashboards API manages arrangements of display widgets. Note that google-cloud-monitoring-dashboard-v1
162
162
  is a version-specific client library. For most uses, we recommend installing the
163
- main client library google-cloud-monitoring-dashboard instead. See the readme for
164
- more details.
163
+ main client library google-cloud-monitoring instead. See the readme for more details.
165
164
  email: googleapis-packages@google.com
166
165
  executables: []
167
166
  extensions: []
@@ -229,7 +228,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
229
228
  - !ruby/object:Gem::Version
230
229
  version: '0'
231
230
  requirements: []
232
- rubygems_version: 3.2.17
231
+ rubygems_version: 3.3.4
233
232
  signing_key:
234
233
  specification_version: 4
235
234
  summary: API Client library for the Cloud Monitoring Dashboards V1 API