google-cloud-monitoring-metrics_scope-v1 0.1.1 → 0.1.2

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: 7de564aea28f53e787a55cb7467fded9c9acdd3e5df0b2205849760e3c3225bc
4
- data.tar.gz: f8f27b8429af1f7c8b374eeb57b76c01eb7d30675ad309fc4b6035747aec97a7
3
+ metadata.gz: e0f1013ee835bfb7d1d71dd12be3e9d806fc90e0ca1acb4f0adeaccd2f446f10
4
+ data.tar.gz: 067d9744fbe1b09c0b36a3d0e8b3666b0a0248bf8e9eadcf29179b399d79fccf
5
5
  SHA512:
6
- metadata.gz: d733054b38ddd81a8fe9c5e5dfb0bb01b8296da0ff271143c1785c10fc37fb934e0160579a3524fe616109473f62a41a2e657c0ab095411999d0f58a621c6527
7
- data.tar.gz: df672e76618606163a5e40a7426319019f25c249c37347948eb90ef4872963c3b8f6d229734567333c32e06490411a393f392d23ef0e5f5f434d82c1c84c7f90
6
+ metadata.gz: 0c0570b2408587230a7de3f449b0db1c388008080437e5d9025f53315aa3f7648706b8f0db463db80dfc65a511027a4f01169008da304042a2e1125bf5cb5717
7
+ data.tar.gz: 9cb990604054855b1d968c52f9077078900450a29aee5068b0a6058eb7217870892c4bb579e4387f0b44cfff6f714ee26f6a2b1d58389d5766d6cd14d69c5cfd
@@ -189,6 +189,21 @@ module Google
189
189
  #
190
190
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
191
191
  #
192
+ # @example Basic example
193
+ # require "google/cloud/monitoring/metrics_scope/v1"
194
+ #
195
+ # # Create a client object. The client can be reused for multiple calls.
196
+ # client = Google::Cloud::Monitoring::MetricsScope::V1::MetricsScopes::Client.new
197
+ #
198
+ # # Create a request. To set request fields, pass in keyword arguments.
199
+ # request = Google::Cloud::Monitoring::MetricsScope::V1::GetMetricsScopeRequest.new
200
+ #
201
+ # # Call the get_metrics_scope method.
202
+ # result = client.get_metrics_scope request
203
+ #
204
+ # # The returned object is of type Google::Cloud::Monitoring::MetricsScope::V1::MetricsScope.
205
+ # p result
206
+ #
192
207
  def get_metrics_scope request, options = nil
193
208
  raise ::ArgumentError, "request must be provided" if request.nil?
194
209
 
@@ -206,9 +221,11 @@ module Google
206
221
  gapic_version: ::Google::Cloud::Monitoring::MetricsScope::V1::VERSION
207
222
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
208
223
 
209
- header_params = {
210
- "name" => request.name
211
- }
224
+ header_params = {}
225
+ if request.name
226
+ header_params["name"] = request.name
227
+ end
228
+
212
229
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
213
230
  metadata[:"x-goog-request-params"] ||= request_params_header
214
231
 
@@ -261,6 +278,21 @@ module Google
261
278
  #
262
279
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
263
280
  #
281
+ # @example Basic example
282
+ # require "google/cloud/monitoring/metrics_scope/v1"
283
+ #
284
+ # # Create a client object. The client can be reused for multiple calls.
285
+ # client = Google::Cloud::Monitoring::MetricsScope::V1::MetricsScopes::Client.new
286
+ #
287
+ # # Create a request. To set request fields, pass in keyword arguments.
288
+ # request = Google::Cloud::Monitoring::MetricsScope::V1::ListMetricsScopesByMonitoredProjectRequest.new
289
+ #
290
+ # # Call the list_metrics_scopes_by_monitored_project method.
291
+ # result = client.list_metrics_scopes_by_monitored_project request
292
+ #
293
+ # # The returned object is of type Google::Cloud::Monitoring::MetricsScope::V1::ListMetricsScopesByMonitoredProjectResponse.
294
+ # p result
295
+ #
264
296
  def list_metrics_scopes_by_monitored_project request, options = nil
265
297
  raise ::ArgumentError, "request must be provided" if request.nil?
266
298
 
@@ -332,6 +364,28 @@ module Google
332
364
  #
333
365
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
334
366
  #
367
+ # @example Basic example
368
+ # require "google/cloud/monitoring/metrics_scope/v1"
369
+ #
370
+ # # Create a client object. The client can be reused for multiple calls.
371
+ # client = Google::Cloud::Monitoring::MetricsScope::V1::MetricsScopes::Client.new
372
+ #
373
+ # # Create a request. To set request fields, pass in keyword arguments.
374
+ # request = Google::Cloud::Monitoring::MetricsScope::V1::CreateMonitoredProjectRequest.new
375
+ #
376
+ # # Call the create_monitored_project method.
377
+ # result = client.create_monitored_project request
378
+ #
379
+ # # The returned object is of type Gapic::Operation. You can use this
380
+ # # object to check the status of an operation, cancel it, or wait
381
+ # # for results. Here is how to block until completion:
382
+ # result.wait_until_done! timeout: 60
383
+ # if result.response?
384
+ # p result.response
385
+ # else
386
+ # puts "Error!"
387
+ # end
388
+ #
335
389
  def create_monitored_project request, options = nil
336
390
  raise ::ArgumentError, "request must be provided" if request.nil?
337
391
 
@@ -349,9 +403,11 @@ module Google
349
403
  gapic_version: ::Google::Cloud::Monitoring::MetricsScope::V1::VERSION
350
404
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
351
405
 
352
- header_params = {
353
- "parent" => request.parent
354
- }
406
+ header_params = {}
407
+ if request.parent
408
+ header_params["parent"] = request.parent
409
+ end
410
+
355
411
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
356
412
  metadata[:"x-goog-request-params"] ||= request_params_header
357
413
 
@@ -407,6 +463,28 @@ module Google
407
463
  #
408
464
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
409
465
  #
466
+ # @example Basic example
467
+ # require "google/cloud/monitoring/metrics_scope/v1"
468
+ #
469
+ # # Create a client object. The client can be reused for multiple calls.
470
+ # client = Google::Cloud::Monitoring::MetricsScope::V1::MetricsScopes::Client.new
471
+ #
472
+ # # Create a request. To set request fields, pass in keyword arguments.
473
+ # request = Google::Cloud::Monitoring::MetricsScope::V1::DeleteMonitoredProjectRequest.new
474
+ #
475
+ # # Call the delete_monitored_project method.
476
+ # result = client.delete_monitored_project request
477
+ #
478
+ # # The returned object is of type Gapic::Operation. You can use this
479
+ # # object to check the status of an operation, cancel it, or wait
480
+ # # for results. Here is how to block until completion:
481
+ # result.wait_until_done! timeout: 60
482
+ # if result.response?
483
+ # p result.response
484
+ # else
485
+ # puts "Error!"
486
+ # end
487
+ #
410
488
  def delete_monitored_project request, options = nil
411
489
  raise ::ArgumentError, "request must be provided" if request.nil?
412
490
 
@@ -424,9 +502,11 @@ module Google
424
502
  gapic_version: ::Google::Cloud::Monitoring::MetricsScope::V1::VERSION
425
503
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
426
504
 
427
- header_params = {
428
- "name" => request.name
429
- }
505
+ header_params = {}
506
+ if request.name
507
+ header_params["name"] = request.name
508
+ end
509
+
430
510
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
431
511
  metadata[:"x-goog-request-params"] ||= request_params_header
432
512
 
@@ -144,6 +144,27 @@ module Google
144
144
  #
145
145
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
146
146
  #
147
+ # @example Basic example
148
+ # require "google/longrunning"
149
+ #
150
+ # # Create a client object. The client can be reused for multiple calls.
151
+ # client = Google::Longrunning::Operations::Client.new
152
+ #
153
+ # # Create a request. To set request fields, pass in keyword arguments.
154
+ # request = Google::Longrunning::ListOperationsRequest.new
155
+ #
156
+ # # Call the list_operations method.
157
+ # result = client.list_operations request
158
+ #
159
+ # # The returned object is of type Gapic::PagedEnumerable. You can
160
+ # # iterate over all elements by calling #each, and the enumerable
161
+ # # will lazily make API calls to fetch subsequent pages. Other
162
+ # # methods are also available for managing paging directly.
163
+ # result.each do |response|
164
+ # # Each element is of type ::Google::Longrunning::Operation.
165
+ # p response
166
+ # end
167
+ #
147
168
  def list_operations request, options = nil
148
169
  raise ::ArgumentError, "request must be provided" if request.nil?
149
170
 
@@ -161,9 +182,11 @@ module Google
161
182
  gapic_version: ::Google::Cloud::Monitoring::MetricsScope::V1::VERSION
162
183
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
163
184
 
164
- header_params = {
165
- "name" => request.name
166
- }
185
+ header_params = {}
186
+ if request.name
187
+ header_params["name"] = request.name
188
+ end
189
+
167
190
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
168
191
  metadata[:"x-goog-request-params"] ||= request_params_header
169
192
 
@@ -216,6 +239,28 @@ module Google
216
239
  #
217
240
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
218
241
  #
242
+ # @example Basic example
243
+ # require "google/longrunning"
244
+ #
245
+ # # Create a client object. The client can be reused for multiple calls.
246
+ # client = Google::Longrunning::Operations::Client.new
247
+ #
248
+ # # Create a request. To set request fields, pass in keyword arguments.
249
+ # request = Google::Longrunning::GetOperationRequest.new
250
+ #
251
+ # # Call the get_operation method.
252
+ # result = client.get_operation request
253
+ #
254
+ # # The returned object is of type Gapic::Operation. You can use this
255
+ # # object to check the status of an operation, cancel it, or wait
256
+ # # for results. Here is how to block until completion:
257
+ # result.wait_until_done! timeout: 60
258
+ # if result.response?
259
+ # p result.response
260
+ # else
261
+ # puts "Error!"
262
+ # end
263
+ #
219
264
  def get_operation request, options = nil
220
265
  raise ::ArgumentError, "request must be provided" if request.nil?
221
266
 
@@ -233,9 +278,11 @@ module Google
233
278
  gapic_version: ::Google::Cloud::Monitoring::MetricsScope::V1::VERSION
234
279
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
235
280
 
236
- header_params = {
237
- "name" => request.name
238
- }
281
+ header_params = {}
282
+ if request.name
283
+ header_params["name"] = request.name
284
+ end
285
+
239
286
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
240
287
  metadata[:"x-goog-request-params"] ||= request_params_header
241
288
 
@@ -288,6 +335,21 @@ module Google
288
335
  #
289
336
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
290
337
  #
338
+ # @example Basic example
339
+ # require "google/longrunning"
340
+ #
341
+ # # Create a client object. The client can be reused for multiple calls.
342
+ # client = Google::Longrunning::Operations::Client.new
343
+ #
344
+ # # Create a request. To set request fields, pass in keyword arguments.
345
+ # request = Google::Longrunning::DeleteOperationRequest.new
346
+ #
347
+ # # Call the delete_operation method.
348
+ # result = client.delete_operation request
349
+ #
350
+ # # The returned object is of type Google::Protobuf::Empty.
351
+ # p result
352
+ #
291
353
  def delete_operation request, options = nil
292
354
  raise ::ArgumentError, "request must be provided" if request.nil?
293
355
 
@@ -305,9 +367,11 @@ module Google
305
367
  gapic_version: ::Google::Cloud::Monitoring::MetricsScope::V1::VERSION
306
368
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
307
369
 
308
- header_params = {
309
- "name" => request.name
310
- }
370
+ header_params = {}
371
+ if request.name
372
+ header_params["name"] = request.name
373
+ end
374
+
311
375
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
312
376
  metadata[:"x-goog-request-params"] ||= request_params_header
313
377
 
@@ -365,6 +429,21 @@ module Google
365
429
  #
366
430
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
367
431
  #
432
+ # @example Basic example
433
+ # require "google/longrunning"
434
+ #
435
+ # # Create a client object. The client can be reused for multiple calls.
436
+ # client = Google::Longrunning::Operations::Client.new
437
+ #
438
+ # # Create a request. To set request fields, pass in keyword arguments.
439
+ # request = Google::Longrunning::CancelOperationRequest.new
440
+ #
441
+ # # Call the cancel_operation method.
442
+ # result = client.cancel_operation request
443
+ #
444
+ # # The returned object is of type Google::Protobuf::Empty.
445
+ # p result
446
+ #
368
447
  def cancel_operation request, options = nil
369
448
  raise ::ArgumentError, "request must be provided" if request.nil?
370
449
 
@@ -382,9 +461,11 @@ module Google
382
461
  gapic_version: ::Google::Cloud::Monitoring::MetricsScope::V1::VERSION
383
462
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
384
463
 
385
- header_params = {
386
- "name" => request.name
387
- }
464
+ header_params = {}
465
+ if request.name
466
+ header_params["name"] = request.name
467
+ end
468
+
388
469
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
389
470
  metadata[:"x-goog-request-params"] ||= request_params_header
390
471
 
@@ -445,6 +526,28 @@ module Google
445
526
  #
446
527
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
447
528
  #
529
+ # @example Basic example
530
+ # require "google/longrunning"
531
+ #
532
+ # # Create a client object. The client can be reused for multiple calls.
533
+ # client = Google::Longrunning::Operations::Client.new
534
+ #
535
+ # # Create a request. To set request fields, pass in keyword arguments.
536
+ # request = Google::Longrunning::WaitOperationRequest.new
537
+ #
538
+ # # Call the wait_operation method.
539
+ # result = client.wait_operation request
540
+ #
541
+ # # The returned object is of type Gapic::Operation. You can use this
542
+ # # object to check the status of an operation, cancel it, or wait
543
+ # # for results. Here is how to block until completion:
544
+ # result.wait_until_done! timeout: 60
545
+ # if result.response?
546
+ # p result.response
547
+ # else
548
+ # puts "Error!"
549
+ # end
550
+ #
448
551
  def wait_operation request, options = nil
449
552
  raise ::ArgumentError, "request must be provided" if request.nil?
450
553
 
@@ -22,7 +22,7 @@ module Google
22
22
  module Monitoring
23
23
  module MetricsScope
24
24
  module V1
25
- VERSION = "0.1.1"
25
+ VERSION = "0.1.2"
26
26
  end
27
27
  end
28
28
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-monitoring-metrics_scope-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
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-10-18 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