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

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: d1e84026fed9b96aedb4cf0d2a21db97d825a509242c9f583e7fa79ab2aedae5
4
- data.tar.gz: 64610b3b48ee8ee413c58be2b17223a9acaa8a4e05341742453604b6bf07c2a7
3
+ metadata.gz: 4e25a98f462e111db103cae38aa9c6735bbc89d4fa757df8d7965a30f9a4e002
4
+ data.tar.gz: c6be50118954767cf9ecf0f5a7abd15a175570ce129822218239084b29115249
5
5
  SHA512:
6
- metadata.gz: d4e752e28822a931d6bafabe58e65344693432891cc10147b855bc4220bffdd17f9e4a1d9e86a846e60277f8e06e900730771f629091581aca41ada3ba82516f
7
- data.tar.gz: fae261f038d4732da68a1428884340e1f782c89e85c76e80cd793f8749ea2534a00a7e440f94a98e9671e3587241ab32e46f5c85bc495dc4af4c65d3e04abfdc
6
+ metadata.gz: dce39421dbad22190d3116fec3d6748e1d49fffa4678633bb63d64cb515deced366e888d21e96578bea58819b3b9baa9252c857386761b5111928d79968ebb8a
7
+ data.tar.gz: d312ccd9724113951ab337ed0d16c928f945f3fbac737fcfcf971849a7198b70ccbffd389a43b9d93c585aa2329c86af2b7bfa76ca88be8292c6dca736e4a41e
data/AUTHENTICATION.md CHANGED
@@ -82,8 +82,8 @@ client = ::Google::Cloud::Monitoring::Dashboard::V1::DashboardsService::Client.n
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/dashboard/v1"
@@ -93,7 +93,7 @@ client = ::Google::Cloud::Monitoring::Dashboard::V1::DashboardsService::Client.n
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/dashboard/v1"
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
@@ -164,8 +158,8 @@ module Google
164
158
  # Service calls
165
159
 
166
160
  ##
167
- # Creates a new custom dashboard. For examples on how you can use this API to create dashboards, see [Managing dashboards by API](/monitoring/dashboards/api-dashboard).
168
- # This method requires the `monitoring.dashboards.create` permission on the specified project. For more information about permissions, see [Cloud Identity and Access Management](/iam).
161
+ # Creates a new custom dashboard. For examples on how you can use this API to create dashboards, see [Managing dashboards by API](https://cloud.google.com/monitoring/dashboards/api-dashboard).
162
+ # This method requires the `monitoring.dashboards.create` permission on the specified project. For more information about permissions, see [Cloud Identity and Access Management](https://cloud.google.com/iam).
169
163
  #
170
164
  # @overload create_dashboard(request, options = nil)
171
165
  # Pass arguments to `create_dashboard` via a request object, either of type
@@ -228,7 +222,9 @@ module Google
228
222
  options.apply_defaults timeout: @config.rpcs.create_dashboard.timeout,
229
223
  metadata: metadata,
230
224
  retry_policy: @config.rpcs.create_dashboard.retry_policy
231
- options.apply_defaults metadata: @config.metadata,
225
+
226
+ options.apply_defaults timeout: @config.timeout,
227
+ metadata: @config.metadata,
232
228
  retry_policy: @config.retry_policy
233
229
 
234
230
  @dashboards_service_stub.call_rpc :create_dashboard, request, options: options do |response, operation|
@@ -307,7 +303,9 @@ module Google
307
303
  options.apply_defaults timeout: @config.rpcs.list_dashboards.timeout,
308
304
  metadata: metadata,
309
305
  retry_policy: @config.rpcs.list_dashboards.retry_policy
310
- options.apply_defaults metadata: @config.metadata,
306
+
307
+ options.apply_defaults timeout: @config.timeout,
308
+ metadata: @config.metadata,
311
309
  retry_policy: @config.retry_policy
312
310
 
313
311
  @dashboards_service_stub.call_rpc :list_dashboards, request, options: options do |response, operation|
@@ -382,7 +380,9 @@ module Google
382
380
  options.apply_defaults timeout: @config.rpcs.get_dashboard.timeout,
383
381
  metadata: metadata,
384
382
  retry_policy: @config.rpcs.get_dashboard.retry_policy
385
- options.apply_defaults metadata: @config.metadata,
383
+
384
+ options.apply_defaults timeout: @config.timeout,
385
+ metadata: @config.metadata,
386
386
  retry_policy: @config.retry_policy
387
387
 
388
388
  @dashboards_service_stub.call_rpc :get_dashboard, request, options: options do |response, operation|
@@ -454,7 +454,9 @@ module Google
454
454
  options.apply_defaults timeout: @config.rpcs.delete_dashboard.timeout,
455
455
  metadata: metadata,
456
456
  retry_policy: @config.rpcs.delete_dashboard.retry_policy
457
- options.apply_defaults metadata: @config.metadata,
457
+
458
+ options.apply_defaults timeout: @config.timeout,
459
+ metadata: @config.metadata,
458
460
  retry_policy: @config.retry_policy
459
461
 
460
462
  @dashboards_service_stub.call_rpc :delete_dashboard, request, options: options do |response, operation|
@@ -527,7 +529,9 @@ module Google
527
529
  options.apply_defaults timeout: @config.rpcs.update_dashboard.timeout,
528
530
  metadata: metadata,
529
531
  retry_policy: @config.rpcs.update_dashboard.retry_policy
530
- options.apply_defaults metadata: @config.metadata,
532
+
533
+ options.apply_defaults timeout: @config.timeout,
534
+ metadata: @config.metadata,
531
535
  retry_policy: @config.retry_policy
532
536
 
533
537
  @dashboards_service_stub.call_rpc :update_dashboard, request, options: options do |response, operation|
@@ -551,22 +555,21 @@ module Google
551
555
  # Configuration can be applied globally to all clients, or to a single client
552
556
  # on construction.
553
557
  #
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
558
+ # @example
559
+ #
560
+ # # Modify the global config, setting the timeout for
561
+ # # create_dashboard to 20 seconds,
562
+ # # and all remaining timeouts to 10 seconds.
563
+ # ::Google::Cloud::Monitoring::Dashboard::V1::DashboardsService::Client.configure do |config|
564
+ # config.timeout = 10.0
565
+ # config.rpcs.create_dashboard.timeout = 20.0
566
+ # end
567
+ #
568
+ # # Apply the above configuration only to a new client.
569
+ # client = ::Google::Cloud::Monitoring::Dashboard::V1::DashboardsService::Client.new do |config|
570
+ # config.timeout = 10.0
571
+ # config.rpcs.create_dashboard.timeout = 20.0
572
+ # end
570
573
  #
571
574
  # @!attribute [rw] endpoint
572
575
  # 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.0"
25
+ VERSION = "0.6.4"
26
26
  end
27
27
  end
28
28
  end
@@ -35,8 +35,8 @@ module Google
35
35
  self.unmarshal_class_method = :decode
36
36
  self.service_name = 'google.monitoring.dashboard.v1.DashboardsService'
37
37
 
38
- # Creates a new custom dashboard. For examples on how you can use this API to create dashboards, see [Managing dashboards by API](/monitoring/dashboards/api-dashboard).
39
- # This method requires the `monitoring.dashboards.create` permission on the specified project. For more information about permissions, see [Cloud Identity and Access Management](/iam).
38
+ # Creates a new custom dashboard. For examples on how you can use this API to create dashboards, see [Managing dashboards by API](https://cloud.google.com/monitoring/dashboards/api-dashboard).
39
+ # This method requires the `monitoring.dashboards.create` permission on the specified project. For more information about permissions, see [Cloud Identity and Access Management](https://cloud.google.com/iam).
40
40
  rpc :CreateDashboard, ::Google::Cloud::Monitoring::Dashboard::V1::CreateDashboardRequest, ::Google::Cloud::Monitoring::Dashboard::V1::Dashboard
41
41
  # Lists the existing dashboards.
42
42
  #
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.0
4
+ version: 0.6.4
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-08 00:00:00.000000000 Z
11
+ date: 2021-08-30 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: []