google-cloud-monitoring-v3 0.16.0 → 0.18.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (31) hide show
  1. checksums.yaml +4 -4
  2. data/lib/google/cloud/monitoring/v3/alert_policy_service/client.rb +13 -5
  3. data/lib/google/cloud/monitoring/v3/group_service/client.rb +26 -14
  4. data/lib/google/cloud/monitoring/v3/metric_service/client.rb +66 -39
  5. data/lib/google/cloud/monitoring/v3/notification_channel_service/client.rb +23 -10
  6. data/lib/google/cloud/monitoring/v3/query_service/client.rb +10 -5
  7. data/lib/google/cloud/monitoring/v3/query_service.rb +1 -1
  8. data/lib/google/cloud/monitoring/v3/service_monitoring_service/client.rb +57 -42
  9. data/lib/google/cloud/monitoring/v3/service_monitoring_service.rb +3 -3
  10. data/lib/google/cloud/monitoring/v3/snooze_service/client.rb +11 -4
  11. data/lib/google/cloud/monitoring/v3/uptime_check_service/client.rb +15 -6
  12. data/lib/google/cloud/monitoring/v3/uptime_check_service/paths.rb +19 -0
  13. data/lib/google/cloud/monitoring/v3/version.rb +1 -1
  14. data/lib/google/monitoring/v3/alert_pb.rb +2 -1
  15. data/lib/google/monitoring/v3/common_pb.rb +1 -1
  16. data/lib/google/monitoring/v3/metric_service_services_pb.rb +11 -7
  17. data/lib/google/monitoring/v3/query_service_pb.rb +2 -2
  18. data/lib/google/monitoring/v3/query_service_services_pb.rb +2 -2
  19. data/lib/google/monitoring/v3/service_pb.rb +7 -1
  20. data/lib/google/monitoring/v3/service_service_services_pb.rb +4 -4
  21. data/lib/google/monitoring/v3/uptime_pb.rb +5 -1
  22. data/proto_docs/google/api/client.rb +4 -0
  23. data/proto_docs/google/api/monitored_resource.rb +1 -1
  24. data/proto_docs/google/monitoring/v3/alert.rb +25 -3
  25. data/proto_docs/google/monitoring/v3/common.rb +43 -33
  26. data/proto_docs/google/monitoring/v3/group_service.rb +11 -8
  27. data/proto_docs/google/monitoring/v3/metric_service.rb +35 -24
  28. data/proto_docs/google/monitoring/v3/service.rb +150 -8
  29. data/proto_docs/google/monitoring/v3/service_service.rb +28 -26
  30. data/proto_docs/google/monitoring/v3/uptime.rb +59 -1
  31. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3fa7079044f4ac1bbc53472a5559862bca32a0f2f7e0b57677faf0334b7b29de
4
- data.tar.gz: 9de6e2596a2342cdf19fac80f8a916f4f195e57cb38809cb60e62bb00974ef5c
3
+ metadata.gz: d8e9c7b81df0e4fe2f5ec4ef0546e59d42064efc6f253c3302793d78bfb1782d
4
+ data.tar.gz: 29bd90cbd4cf2aeb912735c6090f45819df8a4e4e1a3a88cd2514da3d788a2e8
5
5
  SHA512:
6
- metadata.gz: eee23b4b04d01dd3aa1cbba4db027fcba8010c5133e6eb2780e5662f1c7e2ce5d98d396e7b730d4a701c9d8357b50ae99fc76ff4b139848de8db551d1093fe18
7
- data.tar.gz: ac08bb75ad7ccd5c524740c4853f13d557ec1303a6de551ca4e80c8a7025df71eb7d22a31727273b7a10b11ddbf72a2d5eafee8c326ceb40e1345efbd56c54a4
6
+ metadata.gz: e86a7a649f8ad2d833061ebb1fb327e799a7652ce1abc7454bead3aef316b549186641f37aaab93a1cb1e9a2cd6df779fb93e35e3a71b19f839ddf8cc1491b05
7
+ data.tar.gz: 372e00c29a0a9aeb59f1c964696ff8341fda718b9331195daf127b4d3575af30bbfa41f0178194cd6be37fcdeb752ef191b733831f58b01c1610c1d1b70710c2
@@ -38,6 +38,9 @@ module Google
38
38
  # [Cloud console](https://console.cloud.google.com/).
39
39
  #
40
40
  class Client
41
+ # @private
42
+ API_VERSION = ""
43
+
41
44
  # @private
42
45
  DEFAULT_ENDPOINT_TEMPLATE = "monitoring.$UNIVERSE_DOMAIN$"
43
46
 
@@ -275,10 +278,11 @@ module Google
275
278
  # Customize the options with defaults
276
279
  metadata = @config.rpcs.list_alert_policies.metadata.to_h
277
280
 
278
- # Set x-goog-api-client and x-goog-user-project headers
281
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
279
282
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
280
283
  lib_name: @config.lib_name, lib_version: @config.lib_version,
281
284
  gapic_version: ::Google::Cloud::Monitoring::V3::VERSION
285
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
282
286
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
283
287
 
284
288
  header_params = {}
@@ -363,10 +367,11 @@ module Google
363
367
  # Customize the options with defaults
364
368
  metadata = @config.rpcs.get_alert_policy.metadata.to_h
365
369
 
366
- # Set x-goog-api-client and x-goog-user-project headers
370
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
367
371
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
368
372
  lib_name: @config.lib_name, lib_version: @config.lib_version,
369
373
  gapic_version: ::Google::Cloud::Monitoring::V3::VERSION
374
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
370
375
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
371
376
 
372
377
  header_params = {}
@@ -468,10 +473,11 @@ module Google
468
473
  # Customize the options with defaults
469
474
  metadata = @config.rpcs.create_alert_policy.metadata.to_h
470
475
 
471
- # Set x-goog-api-client and x-goog-user-project headers
476
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
472
477
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
473
478
  lib_name: @config.lib_name, lib_version: @config.lib_version,
474
479
  gapic_version: ::Google::Cloud::Monitoring::V3::VERSION
480
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
475
481
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
476
482
 
477
483
  header_params = {}
@@ -561,10 +567,11 @@ module Google
561
567
  # Customize the options with defaults
562
568
  metadata = @config.rpcs.delete_alert_policy.metadata.to_h
563
569
 
564
- # Set x-goog-api-client and x-goog-user-project headers
570
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
565
571
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
566
572
  lib_name: @config.lib_name, lib_version: @config.lib_version,
567
573
  gapic_version: ::Google::Cloud::Monitoring::V3::VERSION
574
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
568
575
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
569
576
 
570
577
  header_params = {}
@@ -678,10 +685,11 @@ module Google
678
685
  # Customize the options with defaults
679
686
  metadata = @config.rpcs.update_alert_policy.metadata.to_h
680
687
 
681
- # Set x-goog-api-client and x-goog-user-project headers
688
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
682
689
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
683
690
  lib_name: @config.lib_name, lib_version: @config.lib_version,
684
691
  gapic_version: ::Google::Cloud::Monitoring::V3::VERSION
692
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
685
693
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
686
694
 
687
695
  header_params = {}
@@ -41,6 +41,9 @@ module Google
41
41
  # from the infrastructure.
42
42
  #
43
43
  class Client
44
+ # @private
45
+ API_VERSION = ""
46
+
44
47
  # @private
45
48
  DEFAULT_ENDPOINT_TEMPLATE = "monitoring.$UNIVERSE_DOMAIN$"
46
49
 
@@ -217,8 +220,9 @@ module Google
217
220
  # the default parameter values, pass an empty Hash as a request object (see above).
218
221
  #
219
222
  # @param name [::String]
220
- # Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name)
221
- # whose groups are to be listed. The format is:
223
+ # Required. The
224
+ # [project](https://cloud.google.com/monitoring/api/v3#project_name) whose
225
+ # groups are to be listed. The format is:
222
226
  #
223
227
  # projects/[PROJECT_ID_OR_NUMBER]
224
228
  # @param children_of_group [::String]
@@ -290,10 +294,11 @@ module Google
290
294
  # Customize the options with defaults
291
295
  metadata = @config.rpcs.list_groups.metadata.to_h
292
296
 
293
- # Set x-goog-api-client and x-goog-user-project headers
297
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
294
298
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
295
299
  lib_name: @config.lib_name, lib_version: @config.lib_version,
296
300
  gapic_version: ::Google::Cloud::Monitoring::V3::VERSION
301
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
297
302
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
298
303
 
299
304
  header_params = {}
@@ -378,10 +383,11 @@ module Google
378
383
  # Customize the options with defaults
379
384
  metadata = @config.rpcs.get_group.metadata.to_h
380
385
 
381
- # Set x-goog-api-client and x-goog-user-project headers
386
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
382
387
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
383
388
  lib_name: @config.lib_name, lib_version: @config.lib_version,
384
389
  gapic_version: ::Google::Cloud::Monitoring::V3::VERSION
390
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
385
391
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
386
392
 
387
393
  header_params = {}
@@ -427,13 +433,14 @@ module Google
427
433
  # the default parameter values, pass an empty Hash as a request object (see above).
428
434
  #
429
435
  # @param name [::String]
430
- # Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) in
431
- # which to create the group. The format is:
436
+ # Required. The
437
+ # [project](https://cloud.google.com/monitoring/api/v3#project_name) in which
438
+ # to create the group. The format is:
432
439
  #
433
440
  # projects/[PROJECT_ID_OR_NUMBER]
434
441
  # @param group [::Google::Cloud::Monitoring::V3::Group, ::Hash]
435
- # Required. A group definition. It is an error to define the `name` field because
436
- # the system assigns the name.
442
+ # Required. A group definition. It is an error to define the `name` field
443
+ # because the system assigns the name.
437
444
  # @param validate_only [::Boolean]
438
445
  # If true, validate this request but do not create the group.
439
446
  #
@@ -471,10 +478,11 @@ module Google
471
478
  # Customize the options with defaults
472
479
  metadata = @config.rpcs.create_group.metadata.to_h
473
480
 
474
- # Set x-goog-api-client and x-goog-user-project headers
481
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
475
482
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
476
483
  lib_name: @config.lib_name, lib_version: @config.lib_version,
477
484
  gapic_version: ::Google::Cloud::Monitoring::V3::VERSION
485
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
478
486
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
479
487
 
480
488
  header_params = {}
@@ -521,8 +529,9 @@ module Google
521
529
  # the default parameter values, pass an empty Hash as a request object (see above).
522
530
  #
523
531
  # @param group [::Google::Cloud::Monitoring::V3::Group, ::Hash]
524
- # Required. The new definition of the group. All fields of the existing group,
525
- # excepting `name`, are replaced with the corresponding fields of this group.
532
+ # Required. The new definition of the group. All fields of the existing
533
+ # group, excepting `name`, are replaced with the corresponding fields of this
534
+ # group.
526
535
  # @param validate_only [::Boolean]
527
536
  # If true, validate this request but do not update the existing group.
528
537
  #
@@ -560,10 +569,11 @@ module Google
560
569
  # Customize the options with defaults
561
570
  metadata = @config.rpcs.update_group.metadata.to_h
562
571
 
563
- # Set x-goog-api-client and x-goog-user-project headers
572
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
564
573
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
565
574
  lib_name: @config.lib_name, lib_version: @config.lib_version,
566
575
  gapic_version: ::Google::Cloud::Monitoring::V3::VERSION
576
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
567
577
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
568
578
 
569
579
  header_params = {}
@@ -651,10 +661,11 @@ module Google
651
661
  # Customize the options with defaults
652
662
  metadata = @config.rpcs.delete_group.metadata.to_h
653
663
 
654
- # Set x-goog-api-client and x-goog-user-project headers
664
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
655
665
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
656
666
  lib_name: @config.lib_name, lib_version: @config.lib_version,
657
667
  gapic_version: ::Google::Cloud::Monitoring::V3::VERSION
668
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
658
669
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
659
670
 
660
671
  header_params = {}
@@ -762,10 +773,11 @@ module Google
762
773
  # Customize the options with defaults
763
774
  metadata = @config.rpcs.list_group_members.metadata.to_h
764
775
 
765
- # Set x-goog-api-client and x-goog-user-project headers
776
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
766
777
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
767
778
  lib_name: @config.lib_name, lib_version: @config.lib_version,
768
779
  gapic_version: ::Google::Cloud::Monitoring::V3::VERSION
780
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
769
781
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
770
782
 
771
783
  header_params = {}
@@ -31,6 +31,9 @@ module Google
31
31
  # time series data.
32
32
  #
33
33
  class Client
34
+ # @private
35
+ API_VERSION = ""
36
+
34
37
  # @private
35
38
  DEFAULT_ENDPOINT_TEMPLATE = "monitoring.$UNIVERSE_DOMAIN$"
36
39
 
@@ -196,7 +199,7 @@ module Google
196
199
  # Service calls
197
200
 
198
201
  ##
199
- # Lists monitored resource descriptors that match a filter. This method does not require a Workspace.
202
+ # Lists monitored resource descriptors that match a filter.
200
203
  #
201
204
  # @overload list_monitored_resource_descriptors(request, options = nil)
202
205
  # Pass arguments to `list_monitored_resource_descriptors` via a request object, either of type
@@ -214,8 +217,9 @@ module Google
214
217
  # the default parameter values, pass an empty Hash as a request object (see above).
215
218
  #
216
219
  # @param name [::String]
217
- # Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on
218
- # which to execute the request. The format is:
220
+ # Required. The
221
+ # [project](https://cloud.google.com/monitoring/api/v3#project_name) on which
222
+ # to execute the request. The format is:
219
223
  #
220
224
  # projects/[PROJECT_ID_OR_NUMBER]
221
225
  # @param filter [::String]
@@ -270,10 +274,11 @@ module Google
270
274
  # Customize the options with defaults
271
275
  metadata = @config.rpcs.list_monitored_resource_descriptors.metadata.to_h
272
276
 
273
- # Set x-goog-api-client and x-goog-user-project headers
277
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
274
278
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
275
279
  lib_name: @config.lib_name, lib_version: @config.lib_version,
276
280
  gapic_version: ::Google::Cloud::Monitoring::V3::VERSION
281
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
277
282
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
278
283
 
279
284
  header_params = {}
@@ -302,7 +307,7 @@ module Google
302
307
  end
303
308
 
304
309
  ##
305
- # Gets a single monitored resource descriptor. This method does not require a Workspace.
310
+ # Gets a single monitored resource descriptor.
306
311
  #
307
312
  # @overload get_monitored_resource_descriptor(request, options = nil)
308
313
  # Pass arguments to `get_monitored_resource_descriptor` via a request object, either of type
@@ -361,10 +366,11 @@ module Google
361
366
  # Customize the options with defaults
362
367
  metadata = @config.rpcs.get_monitored_resource_descriptor.metadata.to_h
363
368
 
364
- # Set x-goog-api-client and x-goog-user-project headers
369
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
365
370
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
366
371
  lib_name: @config.lib_name, lib_version: @config.lib_version,
367
372
  gapic_version: ::Google::Cloud::Monitoring::V3::VERSION
373
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
368
374
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
369
375
 
370
376
  header_params = {}
@@ -392,7 +398,7 @@ module Google
392
398
  end
393
399
 
394
400
  ##
395
- # Lists metric descriptors that match a filter. This method does not require a Workspace.
401
+ # Lists metric descriptors that match a filter.
396
402
  #
397
403
  # @overload list_metric_descriptors(request, options = nil)
398
404
  # Pass arguments to `list_metric_descriptors` via a request object, either of type
@@ -410,8 +416,9 @@ module Google
410
416
  # the default parameter values, pass an empty Hash as a request object (see above).
411
417
  #
412
418
  # @param name [::String]
413
- # Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on
414
- # which to execute the request. The format is:
419
+ # Required. The
420
+ # [project](https://cloud.google.com/monitoring/api/v3#project_name) on which
421
+ # to execute the request. The format is:
415
422
  #
416
423
  # projects/[PROJECT_ID_OR_NUMBER]
417
424
  # @param filter [::String]
@@ -424,7 +431,9 @@ module Google
424
431
  #
425
432
  # metric.type = starts_with("custom.googleapis.com/")
426
433
  # @param page_size [::Integer]
427
- # A positive number that is the maximum number of results to return.
434
+ # A positive number that is the maximum number of results to return. The
435
+ # default and maximum value is 10,000. If a page_size <= 0 or > 10,000 is
436
+ # submitted, will instead return a maximum of 10,000 results.
428
437
  # @param page_token [::String]
429
438
  # If this field is not empty then it must contain the `nextPageToken` value
430
439
  # returned by a previous call to this method. Using this field causes the
@@ -468,10 +477,11 @@ module Google
468
477
  # Customize the options with defaults
469
478
  metadata = @config.rpcs.list_metric_descriptors.metadata.to_h
470
479
 
471
- # Set x-goog-api-client and x-goog-user-project headers
480
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
472
481
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
473
482
  lib_name: @config.lib_name, lib_version: @config.lib_version,
474
483
  gapic_version: ::Google::Cloud::Monitoring::V3::VERSION
484
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
475
485
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
476
486
 
477
487
  header_params = {}
@@ -500,7 +510,7 @@ module Google
500
510
  end
501
511
 
502
512
  ##
503
- # Gets a single metric descriptor. This method does not require a Workspace.
513
+ # Gets a single metric descriptor.
504
514
  #
505
515
  # @overload get_metric_descriptor(request, options = nil)
506
516
  # Pass arguments to `get_metric_descriptor` via a request object, either of type
@@ -518,7 +528,8 @@ module Google
518
528
  # the default parameter values, pass an empty Hash as a request object (see above).
519
529
  #
520
530
  # @param name [::String]
521
- # Required. The metric descriptor on which to execute the request. The format is:
531
+ # Required. The metric descriptor on which to execute the request. The format
532
+ # is:
522
533
  #
523
534
  # projects/[PROJECT_ID_OR_NUMBER]/metricDescriptors/[METRIC_ID]
524
535
  #
@@ -559,10 +570,11 @@ module Google
559
570
  # Customize the options with defaults
560
571
  metadata = @config.rpcs.get_metric_descriptor.metadata.to_h
561
572
 
562
- # Set x-goog-api-client and x-goog-user-project headers
573
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
563
574
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
564
575
  lib_name: @config.lib_name, lib_version: @config.lib_version,
565
576
  gapic_version: ::Google::Cloud::Monitoring::V3::VERSION
577
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
566
578
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
567
579
 
568
580
  header_params = {}
@@ -591,10 +603,11 @@ module Google
591
603
 
592
604
  ##
593
605
  # Creates a new metric descriptor.
594
- # The creation is executed asynchronously and callers may check the returned
595
- # operation to track its progress.
606
+ # The creation is executed asynchronously.
596
607
  # User-created metric descriptors define
597
608
  # [custom metrics](https://cloud.google.com/monitoring/custom-metrics).
609
+ # The metric descriptor is updated if it already exists,
610
+ # except that metric labels are never removed.
598
611
  #
599
612
  # @overload create_metric_descriptor(request, options = nil)
600
613
  # Pass arguments to `create_metric_descriptor` via a request object, either of type
@@ -612,13 +625,14 @@ module Google
612
625
  # the default parameter values, pass an empty Hash as a request object (see above).
613
626
  #
614
627
  # @param name [::String]
615
- # Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on
616
- # which to execute the request. The format is:
628
+ # Required. The
629
+ # [project](https://cloud.google.com/monitoring/api/v3#project_name) on which
630
+ # to execute the request. The format is:
617
631
  # 4
618
632
  # projects/[PROJECT_ID_OR_NUMBER]
619
633
  # @param metric_descriptor [::Google::Api::MetricDescriptor, ::Hash]
620
- # Required. The new [custom metric](https://cloud.google.com/monitoring/custom-metrics)
621
- # descriptor.
634
+ # Required. The new [custom
635
+ # metric](https://cloud.google.com/monitoring/custom-metrics) descriptor.
622
636
  #
623
637
  # @yield [response, operation] Access the result along with the RPC operation
624
638
  # @yieldparam response [::Google::Api::MetricDescriptor]
@@ -654,10 +668,11 @@ module Google
654
668
  # Customize the options with defaults
655
669
  metadata = @config.rpcs.create_metric_descriptor.metadata.to_h
656
670
 
657
- # Set x-goog-api-client and x-goog-user-project headers
671
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
658
672
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
659
673
  lib_name: @config.lib_name, lib_version: @config.lib_version,
660
674
  gapic_version: ::Google::Cloud::Monitoring::V3::VERSION
675
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
661
676
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
662
677
 
663
678
  header_params = {}
@@ -705,7 +720,8 @@ module Google
705
720
  # the default parameter values, pass an empty Hash as a request object (see above).
706
721
  #
707
722
  # @param name [::String]
708
- # Required. The metric descriptor on which to execute the request. The format is:
723
+ # Required. The metric descriptor on which to execute the request. The format
724
+ # is:
709
725
  #
710
726
  # projects/[PROJECT_ID_OR_NUMBER]/metricDescriptors/[METRIC_ID]
711
727
  #
@@ -746,10 +762,11 @@ module Google
746
762
  # Customize the options with defaults
747
763
  metadata = @config.rpcs.delete_metric_descriptor.metadata.to_h
748
764
 
749
- # Set x-goog-api-client and x-goog-user-project headers
765
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
750
766
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
751
767
  lib_name: @config.lib_name, lib_version: @config.lib_version,
752
768
  gapic_version: ::Google::Cloud::Monitoring::V3::VERSION
769
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
753
770
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
754
771
 
755
772
  header_params = {}
@@ -777,7 +794,7 @@ module Google
777
794
  end
778
795
 
779
796
  ##
780
- # Lists time series that match a filter. This method does not require a Workspace.
797
+ # Lists time series that match a filter.
781
798
  #
782
799
  # @overload list_time_series(request, options = nil)
783
800
  # Pass arguments to `list_time_series` via a request object, either of type
@@ -795,24 +812,26 @@ module Google
795
812
  # the default parameter values, pass an empty Hash as a request object (see above).
796
813
  #
797
814
  # @param name [::String]
798
- # Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name),
815
+ # Required. The
816
+ # [project](https://cloud.google.com/monitoring/api/v3#project_name),
799
817
  # organization or folder on which to execute the request. The format is:
800
818
  #
801
819
  # projects/[PROJECT_ID_OR_NUMBER]
802
820
  # organizations/[ORGANIZATION_ID]
803
821
  # folders/[FOLDER_ID]
804
822
  # @param filter [::String]
805
- # Required. A [monitoring filter](https://cloud.google.com/monitoring/api/v3/filters)
806
- # that specifies which time series should be returned. The filter must
807
- # specify a single metric type, and can additionally specify metric labels
808
- # and other information. For example:
823
+ # Required. A [monitoring
824
+ # filter](https://cloud.google.com/monitoring/api/v3/filters) that specifies
825
+ # which time series should be returned. The filter must specify a single
826
+ # metric type, and can additionally specify metric labels and other
827
+ # information. For example:
809
828
  #
810
829
  # metric.type = "compute.googleapis.com/instance/cpu/usage_time" AND
811
830
  # metric.labels.instance_name = "my-instance-name"
812
831
  # @param interval [::Google::Cloud::Monitoring::V3::TimeInterval, ::Hash]
813
- # Required. The time interval for which results should be returned. Only time series
814
- # that contain data points in the specified interval are included
815
- # in the response.
832
+ # Required. The time interval for which results should be returned. Only time
833
+ # series that contain data points in the specified interval are included in
834
+ # the response.
816
835
  # @param aggregation [::Google::Cloud::Monitoring::V3::Aggregation, ::Hash]
817
836
  # Specifies the alignment of data points in individual time series as
818
837
  # well as how to combine the retrieved time series across specified labels.
@@ -876,10 +895,11 @@ module Google
876
895
  # Customize the options with defaults
877
896
  metadata = @config.rpcs.list_time_series.metadata.to_h
878
897
 
879
- # Set x-goog-api-client and x-goog-user-project headers
898
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
880
899
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
881
900
  lib_name: @config.lib_name, lib_version: @config.lib_version,
882
901
  gapic_version: ::Google::Cloud::Monitoring::V3::VERSION
902
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
883
903
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
884
904
 
885
905
  header_params = {}
@@ -912,6 +932,9 @@ module Google
912
932
  # The response is empty if all time series in the request were written.
913
933
  # If any time series could not be written, a corresponding failure message is
914
934
  # included in the error response.
935
+ # This method does not support
936
+ # [resource locations constraint of an organization
937
+ # policy](https://cloud.google.com/resource-manager/docs/organization-policy/defining-locations#setting_the_organization_policy).
915
938
  #
916
939
  # @overload create_time_series(request, options = nil)
917
940
  # Pass arguments to `create_time_series` via a request object, either of type
@@ -929,8 +952,9 @@ module Google
929
952
  # the default parameter values, pass an empty Hash as a request object (see above).
930
953
  #
931
954
  # @param name [::String]
932
- # Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on
933
- # which to execute the request. The format is:
955
+ # Required. The
956
+ # [project](https://cloud.google.com/monitoring/api/v3#project_name) on which
957
+ # to execute the request. The format is:
934
958
  #
935
959
  # projects/[PROJECT_ID_OR_NUMBER]
936
960
  # @param time_series [::Array<::Google::Cloud::Monitoring::V3::TimeSeries, ::Hash>]
@@ -976,10 +1000,11 @@ module Google
976
1000
  # Customize the options with defaults
977
1001
  metadata = @config.rpcs.create_time_series.metadata.to_h
978
1002
 
979
- # Set x-goog-api-client and x-goog-user-project headers
1003
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
980
1004
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
981
1005
  lib_name: @config.lib_name, lib_version: @config.lib_version,
982
1006
  gapic_version: ::Google::Cloud::Monitoring::V3::VERSION
1007
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
983
1008
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
984
1009
 
985
1010
  header_params = {}
@@ -1033,8 +1058,9 @@ module Google
1033
1058
  # the default parameter values, pass an empty Hash as a request object (see above).
1034
1059
  #
1035
1060
  # @param name [::String]
1036
- # Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on
1037
- # which to execute the request. The format is:
1061
+ # Required. The
1062
+ # [project](https://cloud.google.com/monitoring/api/v3#project_name) on which
1063
+ # to execute the request. The format is:
1038
1064
  #
1039
1065
  # projects/[PROJECT_ID_OR_NUMBER]
1040
1066
  # @param time_series [::Array<::Google::Cloud::Monitoring::V3::TimeSeries, ::Hash>]
@@ -1080,10 +1106,11 @@ module Google
1080
1106
  # Customize the options with defaults
1081
1107
  metadata = @config.rpcs.create_service_time_series.metadata.to_h
1082
1108
 
1083
- # Set x-goog-api-client and x-goog-user-project headers
1109
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1084
1110
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1085
1111
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1086
1112
  gapic_version: ::Google::Cloud::Monitoring::V3::VERSION
1113
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1087
1114
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1088
1115
 
1089
1116
  header_params = {}