google-cloud-monitoring-dashboard-v1 0.12.0 → 0.13.0

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: 3d53268ee206ce0ec57270eea9dd7553277894d54763a3194cd849509cc24125
4
- data.tar.gz: 3de4e0179db3e575505507074d08cc638cc420990613ef710bfd4921b62846dc
3
+ metadata.gz: 5055956486e7d7122008a4117702597d5150ebc923136aaf962d822427b93725
4
+ data.tar.gz: 25eb1e2d858a8ef3ba255355fb9d8348504e8bd515f97a18b04de52e169d1b6f
5
5
  SHA512:
6
- metadata.gz: 68a83fc267e1ad265dc8e6e581baa6f28a0ca20bc227ac1961f3ff3bef981e7dd305ba84b29bdf7f901f69f144b396cb9332490d8a01d5d4de67bbb13a56fc8c
7
- data.tar.gz: 9e003f92901b023d29b372c3aeb9c6e548b4f5591416c3a061cebffb347d0df42d0ac5aab9067e487b92f77b8ed7fae2c8acf6360c61ca56d5b27bf5482d8da4
6
+ metadata.gz: e217d3346c25bc66eadca4274f79aa169a065a60d1f41c1b2718f911a73cee14d9e023034858a08ea6e9a546e059313f53c331f6f07f741e13692fd86d79046b
7
+ data.tar.gz: 6aa8981c6413cbdc39da7cea81f4637cacaabf910c07e7e44b9823beb3fd909db806f5a8469492c9f4190d0015a20be952954edb12b3b7102dc14bf588a9d2a5
@@ -136,7 +136,7 @@ module Google
136
136
  credentials = @config.credentials
137
137
  # Use self-signed JWT if the endpoint is unchanged from default,
138
138
  # but only if the default endpoint does not have a region prefix.
139
- enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
139
+ enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
140
140
  !@config.endpoint.split(".").first.include?("-")
141
141
  credentials ||= Credentials.default scope: @config.scope,
142
142
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -151,7 +151,8 @@ module Google
151
151
  credentials: credentials,
152
152
  endpoint: @config.endpoint,
153
153
  channel_args: @config.channel_args,
154
- interceptors: @config.interceptors
154
+ interceptors: @config.interceptors,
155
+ channel_pool_config: @config.channel_pool
155
156
  )
156
157
  end
157
158
 
@@ -717,7 +718,9 @@ module Google
717
718
  class Configuration
718
719
  extend ::Gapic::Config
719
720
 
720
- config_attr :endpoint, "monitoring.googleapis.com", ::String
721
+ DEFAULT_ENDPOINT = "monitoring.googleapis.com"
722
+
723
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
721
724
  config_attr :credentials, nil do |value|
722
725
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
723
726
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
@@ -752,6 +755,14 @@ module Google
752
755
  end
753
756
  end
754
757
 
758
+ ##
759
+ # Configuration for the channel pool
760
+ # @return [::Gapic::ServiceStub::ChannelPool::Configuration]
761
+ #
762
+ def channel_pool
763
+ @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
764
+ end
765
+
755
766
  ##
756
767
  # Configuration RPC class for the DashboardsService API.
757
768
  #
@@ -132,7 +132,7 @@ module Google
132
132
  credentials = @config.credentials
133
133
  # Use self-signed JWT if the endpoint is unchanged from default,
134
134
  # but only if the default endpoint does not have a region prefix.
135
- enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
135
+ enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
136
136
  !@config.endpoint.split(".").first.include?("-")
137
137
  credentials ||= Credentials.default scope: @config.scope,
138
138
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -189,6 +189,22 @@ module Google
189
189
  # @return [::Google::Cloud::Monitoring::Dashboard::V1::Dashboard]
190
190
  #
191
191
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
192
+ #
193
+ # @example Basic example
194
+ # require "google/cloud/monitoring/dashboard/v1"
195
+ #
196
+ # # Create a client object. The client can be reused for multiple calls.
197
+ # client = Google::Cloud::Monitoring::Dashboard::V1::DashboardsService::Rest::Client.new
198
+ #
199
+ # # Create a request. To set request fields, pass in keyword arguments.
200
+ # request = Google::Cloud::Monitoring::Dashboard::V1::CreateDashboardRequest.new
201
+ #
202
+ # # Call the create_dashboard method.
203
+ # result = client.create_dashboard request
204
+ #
205
+ # # The returned object is of type Google::Cloud::Monitoring::Dashboard::V1::Dashboard.
206
+ # p result
207
+ #
192
208
  def create_dashboard request, options = nil
193
209
  raise ::ArgumentError, "request must be provided" if request.nil?
194
210
 
@@ -264,6 +280,26 @@ module Google
264
280
  # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Monitoring::Dashboard::V1::Dashboard>]
265
281
  #
266
282
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
283
+ #
284
+ # @example Basic example
285
+ # require "google/cloud/monitoring/dashboard/v1"
286
+ #
287
+ # # Create a client object. The client can be reused for multiple calls.
288
+ # client = Google::Cloud::Monitoring::Dashboard::V1::DashboardsService::Rest::Client.new
289
+ #
290
+ # # Create a request. To set request fields, pass in keyword arguments.
291
+ # request = Google::Cloud::Monitoring::Dashboard::V1::ListDashboardsRequest.new
292
+ #
293
+ # # Call the list_dashboards method.
294
+ # result = client.list_dashboards request
295
+ #
296
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
297
+ # # over elements, and API calls will be issued to fetch pages as needed.
298
+ # result.each do |item|
299
+ # # Each element is of type ::Google::Cloud::Monitoring::Dashboard::V1::Dashboard.
300
+ # p item
301
+ # end
302
+ #
267
303
  def list_dashboards request, options = nil
268
304
  raise ::ArgumentError, "request must be provided" if request.nil?
269
305
 
@@ -335,6 +371,22 @@ module Google
335
371
  # @return [::Google::Cloud::Monitoring::Dashboard::V1::Dashboard]
336
372
  #
337
373
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
374
+ #
375
+ # @example Basic example
376
+ # require "google/cloud/monitoring/dashboard/v1"
377
+ #
378
+ # # Create a client object. The client can be reused for multiple calls.
379
+ # client = Google::Cloud::Monitoring::Dashboard::V1::DashboardsService::Rest::Client.new
380
+ #
381
+ # # Create a request. To set request fields, pass in keyword arguments.
382
+ # request = Google::Cloud::Monitoring::Dashboard::V1::GetDashboardRequest.new
383
+ #
384
+ # # Call the get_dashboard method.
385
+ # result = client.get_dashboard request
386
+ #
387
+ # # The returned object is of type Google::Cloud::Monitoring::Dashboard::V1::Dashboard.
388
+ # p result
389
+ #
338
390
  def get_dashboard request, options = nil
339
391
  raise ::ArgumentError, "request must be provided" if request.nil?
340
392
 
@@ -403,6 +455,22 @@ module Google
403
455
  # @return [::Google::Protobuf::Empty]
404
456
  #
405
457
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
458
+ #
459
+ # @example Basic example
460
+ # require "google/cloud/monitoring/dashboard/v1"
461
+ #
462
+ # # Create a client object. The client can be reused for multiple calls.
463
+ # client = Google::Cloud::Monitoring::Dashboard::V1::DashboardsService::Rest::Client.new
464
+ #
465
+ # # Create a request. To set request fields, pass in keyword arguments.
466
+ # request = Google::Cloud::Monitoring::Dashboard::V1::DeleteDashboardRequest.new
467
+ #
468
+ # # Call the delete_dashboard method.
469
+ # result = client.delete_dashboard request
470
+ #
471
+ # # The returned object is of type Google::Protobuf::Empty.
472
+ # p result
473
+ #
406
474
  def delete_dashboard request, options = nil
407
475
  raise ::ArgumentError, "request must be provided" if request.nil?
408
476
 
@@ -472,6 +540,22 @@ module Google
472
540
  # @return [::Google::Cloud::Monitoring::Dashboard::V1::Dashboard]
473
541
  #
474
542
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
543
+ #
544
+ # @example Basic example
545
+ # require "google/cloud/monitoring/dashboard/v1"
546
+ #
547
+ # # Create a client object. The client can be reused for multiple calls.
548
+ # client = Google::Cloud::Monitoring::Dashboard::V1::DashboardsService::Rest::Client.new
549
+ #
550
+ # # Create a request. To set request fields, pass in keyword arguments.
551
+ # request = Google::Cloud::Monitoring::Dashboard::V1::UpdateDashboardRequest.new
552
+ #
553
+ # # Call the update_dashboard method.
554
+ # result = client.update_dashboard request
555
+ #
556
+ # # The returned object is of type Google::Cloud::Monitoring::Dashboard::V1::Dashboard.
557
+ # p result
558
+ #
475
559
  def update_dashboard request, options = nil
476
560
  raise ::ArgumentError, "request must be provided" if request.nil?
477
561
 
@@ -580,7 +664,9 @@ module Google
580
664
  class Configuration
581
665
  extend ::Gapic::Config
582
666
 
583
- config_attr :endpoint, "monitoring.googleapis.com", ::String
667
+ DEFAULT_ENDPOINT = "monitoring.googleapis.com"
668
+
669
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
584
670
  config_attr :credentials, nil do |value|
585
671
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
586
672
  allowed.any? { |klass| klass === value }
@@ -60,7 +60,7 @@ module Google
60
60
 
61
61
  verb, uri, query_string_params, body = ServiceStub.transcode_create_dashboard_request request_pb
62
62
  query_string_params = if query_string_params.any?
63
- query_string_params.to_h { |p| p.split("=", 2) }
63
+ query_string_params.to_h { |p| p.split "=", 2 }
64
64
  else
65
65
  {}
66
66
  end
@@ -98,7 +98,7 @@ module Google
98
98
 
99
99
  verb, uri, query_string_params, body = ServiceStub.transcode_list_dashboards_request request_pb
100
100
  query_string_params = if query_string_params.any?
101
- query_string_params.to_h { |p| p.split("=", 2) }
101
+ query_string_params.to_h { |p| p.split "=", 2 }
102
102
  else
103
103
  {}
104
104
  end
@@ -136,7 +136,7 @@ module Google
136
136
 
137
137
  verb, uri, query_string_params, body = ServiceStub.transcode_get_dashboard_request request_pb
138
138
  query_string_params = if query_string_params.any?
139
- query_string_params.to_h { |p| p.split("=", 2) }
139
+ query_string_params.to_h { |p| p.split "=", 2 }
140
140
  else
141
141
  {}
142
142
  end
@@ -174,7 +174,7 @@ module Google
174
174
 
175
175
  verb, uri, query_string_params, body = ServiceStub.transcode_delete_dashboard_request request_pb
176
176
  query_string_params = if query_string_params.any?
177
- query_string_params.to_h { |p| p.split("=", 2) }
177
+ query_string_params.to_h { |p| p.split "=", 2 }
178
178
  else
179
179
  {}
180
180
  end
@@ -212,7 +212,7 @@ module Google
212
212
 
213
213
  verb, uri, query_string_params, body = ServiceStub.transcode_update_dashboard_request request_pb
214
214
  query_string_params = if query_string_params.any?
215
- query_string_params.to_h { |p| p.split("=", 2) }
215
+ query_string_params.to_h { |p| p.split "=", 2 }
216
216
  else
217
217
  {}
218
218
  end
@@ -22,7 +22,7 @@ module Google
22
22
  module Monitoring
23
23
  module Dashboard
24
24
  module V1
25
- VERSION = "0.12.0"
25
+ VERSION = "0.13.0"
26
26
  end
27
27
  end
28
28
  end
@@ -66,6 +66,20 @@ module Google
66
66
  # a non-empty value will be returned. The user will not be aware of what
67
67
  # non-empty value to expect.
68
68
  NON_EMPTY_DEFAULT = 7
69
+
70
+ # Denotes that the field in a resource (a message annotated with
71
+ # google.api.resource) is used in the resource name to uniquely identify the
72
+ # resource. For AIP-compliant APIs, this should only be applied to the
73
+ # `name` field on the resource.
74
+ #
75
+ # This behavior should not be applied to references to other resources within
76
+ # the message.
77
+ #
78
+ # The identifier field of resources often have different field behavior
79
+ # depending on the request it is embedded in (e.g. for Create methods name
80
+ # is optional and unused, while for Update methods it is required). Instead
81
+ # of method-specific annotations, only `IDENTIFIER` is required.
82
+ IDENTIFIER = 8
69
83
  end
70
84
  end
71
85
  end
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.12.0
4
+ version: 0.13.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-05-31 00:00:00.000000000 Z
11
+ date: 2023-09-12 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.19.0
19
+ version: 0.20.0
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.19.0
29
+ version: 0.20.0
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a
@@ -240,7 +240,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
240
240
  - !ruby/object:Gem::Version
241
241
  version: '0'
242
242
  requirements: []
243
- rubygems_version: 3.4.2
243
+ rubygems_version: 3.4.19
244
244
  signing_key:
245
245
  specification_version: 4
246
246
  summary: Manages your Cloud Monitoring data and configurations.