google-cloud-logging 1.10.5 → 1.10.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: bd1f41e64309828c0a4ade40f6f37f34f5c880d5bc076cef18c3d864aba75e1d
4
- data.tar.gz: 58f97d26011dbd5438f3644291096c37cf39fef9ab0394498148153d1a45ac50
3
+ metadata.gz: 3b14b69bc89fe81a4a1ab8661ea45b9f51a045146abd415b80950c18e5220828
4
+ data.tar.gz: 7dcdbb67f99d4315da32ec5c9db347ae1a3d4b9691bef3f37abbf5efcebbf76b
5
5
  SHA512:
6
- metadata.gz: f702d5baed7f22f965e294e4e81ec582aa04b0df72ffb9231d02a41791656acc486e8b0093b9c60c3f5119ceb195cf74208a5fdfa13373758f2d7a20e9326057
7
- data.tar.gz: cf3d386de873038b9db370e66b85078dc4ed15961e5ba4410f7ac5dc192131db84ced61a9312d215b2e4039587433507c0758b8f913d5101d6ad1ec781d3baaa
6
+ metadata.gz: d8c812bfa3d281702a13a7b196368b91bf9c22f3313a7b815a8214f829558437a8b13c1fcbf7bd2d4b8faf44a5af74f33e7aec3397c78bf92ab302083dba4901
7
+ data.tar.gz: 90c9f9b3a687b95b903655ca967a118cd1c99ef70a7a2f27d8695ab3d9c49252502576d005ba9a1ba902b7c95aff0a642ad6a384bdc0ea3da617eef4fe75a085
data/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Release History
2
2
 
3
+ ### 1.10.6 / 2020-05-19
4
+
5
+ #### Bug Fixes
6
+
7
+ * Adjusted some default timeout and retry settings
8
+
3
9
  ### 1.10.5 / 2020-05-05
4
10
 
5
11
  #### Bug Fixes
@@ -388,6 +388,30 @@ module Google
388
388
  &Google::Logging::V2::ConfigServiceV2::Stub.method(:new)
389
389
  )
390
390
 
391
+ @delete_sink = Google::Gax.create_api_call(
392
+ @config_service_v2_stub.method(:delete_sink),
393
+ defaults["delete_sink"],
394
+ exception_transformer: exception_transformer,
395
+ params_extractor: proc do |request|
396
+ {'sink_name' => request.sink_name}
397
+ end
398
+ )
399
+ @update_sink = Google::Gax.create_api_call(
400
+ @config_service_v2_stub.method(:update_sink),
401
+ defaults["update_sink"],
402
+ exception_transformer: exception_transformer,
403
+ params_extractor: proc do |request|
404
+ {'sink_name' => request.sink_name}
405
+ end
406
+ )
407
+ @delete_exclusion = Google::Gax.create_api_call(
408
+ @config_service_v2_stub.method(:delete_exclusion),
409
+ defaults["delete_exclusion"],
410
+ exception_transformer: exception_transformer,
411
+ params_extractor: proc do |request|
412
+ {'name' => request.name}
413
+ end
414
+ )
391
415
  @list_buckets = Google::Gax.create_api_call(
392
416
  @config_service_v2_stub.method(:list_buckets),
393
417
  defaults["list_buckets"],
@@ -436,22 +460,6 @@ module Google
436
460
  {'parent' => request.parent}
437
461
  end
438
462
  )
439
- @update_sink = Google::Gax.create_api_call(
440
- @config_service_v2_stub.method(:update_sink),
441
- defaults["update_sink"],
442
- exception_transformer: exception_transformer,
443
- params_extractor: proc do |request|
444
- {'sink_name' => request.sink_name}
445
- end
446
- )
447
- @delete_sink = Google::Gax.create_api_call(
448
- @config_service_v2_stub.method(:delete_sink),
449
- defaults["delete_sink"],
450
- exception_transformer: exception_transformer,
451
- params_extractor: proc do |request|
452
- {'sink_name' => request.sink_name}
453
- end
454
- )
455
463
  @list_exclusions = Google::Gax.create_api_call(
456
464
  @config_service_v2_stub.method(:list_exclusions),
457
465
  defaults["list_exclusions"],
@@ -484,14 +492,6 @@ module Google
484
492
  {'name' => request.name}
485
493
  end
486
494
  )
487
- @delete_exclusion = Google::Gax.create_api_call(
488
- @config_service_v2_stub.method(:delete_exclusion),
489
- defaults["delete_exclusion"],
490
- exception_transformer: exception_transformer,
491
- params_extractor: proc do |request|
492
- {'name' => request.name}
493
- end
494
- )
495
495
  @get_cmek_settings = Google::Gax.create_api_call(
496
496
  @config_service_v2_stub.method(:get_cmek_settings),
497
497
  defaults["get_cmek_settings"],
@@ -512,6 +512,173 @@ module Google
512
512
 
513
513
  # Service calls
514
514
 
515
+ # Deletes a sink. If the sink has a unique `writer_identity`, then that
516
+ # service account is also deleted.
517
+ #
518
+ # @param sink_name [String]
519
+ # Required. The full resource name of the sink to delete, including the parent
520
+ # resource and the sink identifier:
521
+ #
522
+ # "projects/[PROJECT_ID]/sinks/[SINK_ID]"
523
+ # "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]"
524
+ # "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]"
525
+ # "folders/[FOLDER_ID]/sinks/[SINK_ID]"
526
+ #
527
+ # Example: `"projects/my-project-id/sinks/my-sink-id"`.
528
+ # @param options [Google::Gax::CallOptions]
529
+ # Overrides the default settings for this call, e.g, timeout,
530
+ # retries, etc.
531
+ # @yield [result, operation] Access the result along with the RPC operation
532
+ # @yieldparam result []
533
+ # @yieldparam operation [GRPC::ActiveCall::Operation]
534
+ # @raise [Google::Gax::GaxError] if the RPC is aborted.
535
+ # @example
536
+ # require "google/cloud/logging/v2"
537
+ #
538
+ # config_client = Google::Cloud::Logging::V2::ConfigServiceV2Client.new
539
+ #
540
+ # # TODO: Initialize `sink_name`:
541
+ # sink_name = ''
542
+ # config_client.delete_sink(sink_name)
543
+
544
+ def delete_sink \
545
+ sink_name,
546
+ options: nil,
547
+ &block
548
+ req = {
549
+ sink_name: sink_name
550
+ }.delete_if { |_, v| v.nil? }
551
+ req = Google::Gax::to_proto(req, Google::Logging::V2::DeleteSinkRequest)
552
+ @delete_sink.call(req, options, &block)
553
+ nil
554
+ end
555
+
556
+ # Updates a sink. This method replaces the following fields in the existing
557
+ # sink with values from the new sink: `destination`, and `filter`.
558
+ #
559
+ # The updated sink might also have a new `writer_identity`; see the
560
+ # `unique_writer_identity` field.
561
+ #
562
+ # @param sink_name [String]
563
+ # Required. The full resource name of the sink to update, including the parent
564
+ # resource and the sink identifier:
565
+ #
566
+ # "projects/[PROJECT_ID]/sinks/[SINK_ID]"
567
+ # "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]"
568
+ # "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]"
569
+ # "folders/[FOLDER_ID]/sinks/[SINK_ID]"
570
+ #
571
+ # Example: `"projects/my-project-id/sinks/my-sink-id"`.
572
+ # @param sink [Google::Logging::V2::LogSink | Hash]
573
+ # Required. The updated sink, whose name is the same identifier that appears as part
574
+ # of `sink_name`.
575
+ # A hash of the same form as `Google::Logging::V2::LogSink`
576
+ # can also be provided.
577
+ # @param unique_writer_identity [true, false]
578
+ # Optional. See {Google::Logging::V2::ConfigServiceV2#create_sink}
579
+ # for a description of this field. When updating a sink, the effect of this
580
+ # field on the value of `writer_identity` in the updated sink depends on both
581
+ # the old and new values of this field:
582
+ #
583
+ # * If the old and new values of this field are both false or both true,
584
+ # then there is no change to the sink's `writer_identity`.
585
+ # * If the old value is false and the new value is true, then
586
+ # `writer_identity` is changed to a unique service account.
587
+ # * It is an error if the old value is true and the new value is
588
+ # set to false or defaulted to false.
589
+ # @param update_mask [Google::Protobuf::FieldMask | Hash]
590
+ # Optional. Field mask that specifies the fields in `sink` that need
591
+ # an update. A sink field will be overwritten if, and only if, it is
592
+ # in the update mask. `name` and output only fields cannot be updated.
593
+ #
594
+ # An empty updateMask is temporarily treated as using the following mask
595
+ # for backwards compatibility purposes:
596
+ # destination,filter,includeChildren
597
+ # At some point in the future, behavior will be removed and specifying an
598
+ # empty updateMask will be an error.
599
+ #
600
+ # For a detailed `FieldMask` definition, see
601
+ # https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMask
602
+ #
603
+ # Example: `updateMask=filter`.
604
+ # A hash of the same form as `Google::Protobuf::FieldMask`
605
+ # can also be provided.
606
+ # @param options [Google::Gax::CallOptions]
607
+ # Overrides the default settings for this call, e.g, timeout,
608
+ # retries, etc.
609
+ # @yield [result, operation] Access the result along with the RPC operation
610
+ # @yieldparam result [Google::Logging::V2::LogSink]
611
+ # @yieldparam operation [GRPC::ActiveCall::Operation]
612
+ # @return [Google::Logging::V2::LogSink]
613
+ # @raise [Google::Gax::GaxError] if the RPC is aborted.
614
+ # @example
615
+ # require "google/cloud/logging/v2"
616
+ #
617
+ # config_client = Google::Cloud::Logging::V2::ConfigServiceV2Client.new
618
+ #
619
+ # # TODO: Initialize `sink_name`:
620
+ # sink_name = ''
621
+ #
622
+ # # TODO: Initialize `sink`:
623
+ # sink = {}
624
+ # response = config_client.update_sink(sink_name, sink)
625
+
626
+ def update_sink \
627
+ sink_name,
628
+ sink,
629
+ unique_writer_identity: nil,
630
+ update_mask: nil,
631
+ options: nil,
632
+ &block
633
+ req = {
634
+ sink_name: sink_name,
635
+ sink: sink,
636
+ unique_writer_identity: unique_writer_identity,
637
+ update_mask: update_mask
638
+ }.delete_if { |_, v| v.nil? }
639
+ req = Google::Gax::to_proto(req, Google::Logging::V2::UpdateSinkRequest)
640
+ @update_sink.call(req, options, &block)
641
+ end
642
+
643
+ # Deletes an exclusion.
644
+ #
645
+ # @param name [String]
646
+ # Required. The resource name of an existing exclusion to delete:
647
+ #
648
+ # "projects/[PROJECT_ID]/exclusions/[EXCLUSION_ID]"
649
+ # "organizations/[ORGANIZATION_ID]/exclusions/[EXCLUSION_ID]"
650
+ # "billingAccounts/[BILLING_ACCOUNT_ID]/exclusions/[EXCLUSION_ID]"
651
+ # "folders/[FOLDER_ID]/exclusions/[EXCLUSION_ID]"
652
+ #
653
+ # Example: `"projects/my-project-id/exclusions/my-exclusion-id"`.
654
+ # @param options [Google::Gax::CallOptions]
655
+ # Overrides the default settings for this call, e.g, timeout,
656
+ # retries, etc.
657
+ # @yield [result, operation] Access the result along with the RPC operation
658
+ # @yieldparam result []
659
+ # @yieldparam operation [GRPC::ActiveCall::Operation]
660
+ # @raise [Google::Gax::GaxError] if the RPC is aborted.
661
+ # @example
662
+ # require "google/cloud/logging/v2"
663
+ #
664
+ # config_client = Google::Cloud::Logging::V2::ConfigServiceV2Client.new
665
+ #
666
+ # # TODO: Initialize `name`:
667
+ # name = ''
668
+ # config_client.delete_exclusion(name)
669
+
670
+ def delete_exclusion \
671
+ name,
672
+ options: nil,
673
+ &block
674
+ req = {
675
+ name: name
676
+ }.delete_if { |_, v| v.nil? }
677
+ req = Google::Gax::to_proto(req, Google::Logging::V2::DeleteExclusionRequest)
678
+ @delete_exclusion.call(req, options, &block)
679
+ nil
680
+ end
681
+
515
682
  # Lists buckets (Beta).
516
683
  #
517
684
  # @param parent [String]
@@ -854,134 +1021,6 @@ module Google
854
1021
  @create_sink.call(req, options, &block)
855
1022
  end
856
1023
 
857
- # Updates a sink. This method replaces the following fields in the existing
858
- # sink with values from the new sink: `destination`, and `filter`.
859
- #
860
- # The updated sink might also have a new `writer_identity`; see the
861
- # `unique_writer_identity` field.
862
- #
863
- # @param sink_name [String]
864
- # Required. The full resource name of the sink to update, including the parent
865
- # resource and the sink identifier:
866
- #
867
- # "projects/[PROJECT_ID]/sinks/[SINK_ID]"
868
- # "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]"
869
- # "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]"
870
- # "folders/[FOLDER_ID]/sinks/[SINK_ID]"
871
- #
872
- # Example: `"projects/my-project-id/sinks/my-sink-id"`.
873
- # @param sink [Google::Logging::V2::LogSink | Hash]
874
- # Required. The updated sink, whose name is the same identifier that appears as part
875
- # of `sink_name`.
876
- # A hash of the same form as `Google::Logging::V2::LogSink`
877
- # can also be provided.
878
- # @param unique_writer_identity [true, false]
879
- # Optional. See {Google::Logging::V2::ConfigServiceV2#create_sink}
880
- # for a description of this field. When updating a sink, the effect of this
881
- # field on the value of `writer_identity` in the updated sink depends on both
882
- # the old and new values of this field:
883
- #
884
- # * If the old and new values of this field are both false or both true,
885
- # then there is no change to the sink's `writer_identity`.
886
- # * If the old value is false and the new value is true, then
887
- # `writer_identity` is changed to a unique service account.
888
- # * It is an error if the old value is true and the new value is
889
- # set to false or defaulted to false.
890
- # @param update_mask [Google::Protobuf::FieldMask | Hash]
891
- # Optional. Field mask that specifies the fields in `sink` that need
892
- # an update. A sink field will be overwritten if, and only if, it is
893
- # in the update mask. `name` and output only fields cannot be updated.
894
- #
895
- # An empty updateMask is temporarily treated as using the following mask
896
- # for backwards compatibility purposes:
897
- # destination,filter,includeChildren
898
- # At some point in the future, behavior will be removed and specifying an
899
- # empty updateMask will be an error.
900
- #
901
- # For a detailed `FieldMask` definition, see
902
- # https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMask
903
- #
904
- # Example: `updateMask=filter`.
905
- # A hash of the same form as `Google::Protobuf::FieldMask`
906
- # can also be provided.
907
- # @param options [Google::Gax::CallOptions]
908
- # Overrides the default settings for this call, e.g, timeout,
909
- # retries, etc.
910
- # @yield [result, operation] Access the result along with the RPC operation
911
- # @yieldparam result [Google::Logging::V2::LogSink]
912
- # @yieldparam operation [GRPC::ActiveCall::Operation]
913
- # @return [Google::Logging::V2::LogSink]
914
- # @raise [Google::Gax::GaxError] if the RPC is aborted.
915
- # @example
916
- # require "google/cloud/logging/v2"
917
- #
918
- # config_client = Google::Cloud::Logging::V2::ConfigServiceV2Client.new
919
- #
920
- # # TODO: Initialize `sink_name`:
921
- # sink_name = ''
922
- #
923
- # # TODO: Initialize `sink`:
924
- # sink = {}
925
- # response = config_client.update_sink(sink_name, sink)
926
-
927
- def update_sink \
928
- sink_name,
929
- sink,
930
- unique_writer_identity: nil,
931
- update_mask: nil,
932
- options: nil,
933
- &block
934
- req = {
935
- sink_name: sink_name,
936
- sink: sink,
937
- unique_writer_identity: unique_writer_identity,
938
- update_mask: update_mask
939
- }.delete_if { |_, v| v.nil? }
940
- req = Google::Gax::to_proto(req, Google::Logging::V2::UpdateSinkRequest)
941
- @update_sink.call(req, options, &block)
942
- end
943
-
944
- # Deletes a sink. If the sink has a unique `writer_identity`, then that
945
- # service account is also deleted.
946
- #
947
- # @param sink_name [String]
948
- # Required. The full resource name of the sink to delete, including the parent
949
- # resource and the sink identifier:
950
- #
951
- # "projects/[PROJECT_ID]/sinks/[SINK_ID]"
952
- # "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]"
953
- # "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]"
954
- # "folders/[FOLDER_ID]/sinks/[SINK_ID]"
955
- #
956
- # Example: `"projects/my-project-id/sinks/my-sink-id"`.
957
- # @param options [Google::Gax::CallOptions]
958
- # Overrides the default settings for this call, e.g, timeout,
959
- # retries, etc.
960
- # @yield [result, operation] Access the result along with the RPC operation
961
- # @yieldparam result []
962
- # @yieldparam operation [GRPC::ActiveCall::Operation]
963
- # @raise [Google::Gax::GaxError] if the RPC is aborted.
964
- # @example
965
- # require "google/cloud/logging/v2"
966
- #
967
- # config_client = Google::Cloud::Logging::V2::ConfigServiceV2Client.new
968
- #
969
- # # TODO: Initialize `sink_name`:
970
- # sink_name = ''
971
- # config_client.delete_sink(sink_name)
972
-
973
- def delete_sink \
974
- sink_name,
975
- options: nil,
976
- &block
977
- req = {
978
- sink_name: sink_name
979
- }.delete_if { |_, v| v.nil? }
980
- req = Google::Gax::to_proto(req, Google::Logging::V2::DeleteSinkRequest)
981
- @delete_sink.call(req, options, &block)
982
- nil
983
- end
984
-
985
1024
  # Lists all the exclusions in a parent resource.
986
1025
  #
987
1026
  # @param parent [String]
@@ -1193,45 +1232,6 @@ module Google
1193
1232
  @update_exclusion.call(req, options, &block)
1194
1233
  end
1195
1234
 
1196
- # Deletes an exclusion.
1197
- #
1198
- # @param name [String]
1199
- # Required. The resource name of an existing exclusion to delete:
1200
- #
1201
- # "projects/[PROJECT_ID]/exclusions/[EXCLUSION_ID]"
1202
- # "organizations/[ORGANIZATION_ID]/exclusions/[EXCLUSION_ID]"
1203
- # "billingAccounts/[BILLING_ACCOUNT_ID]/exclusions/[EXCLUSION_ID]"
1204
- # "folders/[FOLDER_ID]/exclusions/[EXCLUSION_ID]"
1205
- #
1206
- # Example: `"projects/my-project-id/exclusions/my-exclusion-id"`.
1207
- # @param options [Google::Gax::CallOptions]
1208
- # Overrides the default settings for this call, e.g, timeout,
1209
- # retries, etc.
1210
- # @yield [result, operation] Access the result along with the RPC operation
1211
- # @yieldparam result []
1212
- # @yieldparam operation [GRPC::ActiveCall::Operation]
1213
- # @raise [Google::Gax::GaxError] if the RPC is aborted.
1214
- # @example
1215
- # require "google/cloud/logging/v2"
1216
- #
1217
- # config_client = Google::Cloud::Logging::V2::ConfigServiceV2Client.new
1218
- #
1219
- # # TODO: Initialize `name`:
1220
- # name = ''
1221
- # config_client.delete_exclusion(name)
1222
-
1223
- def delete_exclusion \
1224
- name,
1225
- options: nil,
1226
- &block
1227
- req = {
1228
- name: name
1229
- }.delete_if { |_, v| v.nil? }
1230
- req = Google::Gax::to_proto(req, Google::Logging::V2::DeleteExclusionRequest)
1231
- @delete_exclusion.call(req, options, &block)
1232
- nil
1233
- end
1234
-
1235
1235
  # Gets the Logs Router CMEK settings for the given resource.
1236
1236
  #
1237
1237
  # Note: CMEK for the Logs Router can currently only be configured for GCP
@@ -4,9 +4,14 @@
4
4
  "retry_codes": {
5
5
  "idempotent": [
6
6
  "DEADLINE_EXCEEDED",
7
+ "INTERNAL",
7
8
  "UNAVAILABLE"
8
9
  ],
9
- "non_idempotent": []
10
+ "non_idempotent": [],
11
+ "idempotent2": [
12
+ "DEADLINE_EXCEEDED",
13
+ "UNAVAILABLE"
14
+ ]
10
15
  },
11
16
  "retry_params": {
12
17
  "default": {
@@ -20,54 +25,59 @@
20
25
  }
21
26
  },
22
27
  "methods": {
23
- "ListBuckets": {
28
+ "DeleteSink": {
24
29
  "timeout_millis": 60000,
25
30
  "retry_codes_name": "idempotent",
26
31
  "retry_params_name": "default"
27
32
  },
28
- "GetBucket": {
33
+ "UpdateSink": {
29
34
  "timeout_millis": 60000,
30
35
  "retry_codes_name": "idempotent",
31
36
  "retry_params_name": "default"
32
37
  },
33
- "UpdateBucket": {
38
+ "DeleteExclusion": {
34
39
  "timeout_millis": 60000,
35
- "retry_codes_name": "non_idempotent",
40
+ "retry_codes_name": "idempotent",
36
41
  "retry_params_name": "default"
37
42
  },
38
- "ListSinks": {
43
+ "ListBuckets": {
39
44
  "timeout_millis": 60000,
40
- "retry_codes_name": "idempotent",
45
+ "retry_codes_name": "idempotent2",
41
46
  "retry_params_name": "default"
42
47
  },
43
- "GetSink": {
48
+ "GetBucket": {
44
49
  "timeout_millis": 60000,
45
- "retry_codes_name": "idempotent",
50
+ "retry_codes_name": "idempotent2",
46
51
  "retry_params_name": "default"
47
52
  },
48
- "CreateSink": {
53
+ "UpdateBucket": {
49
54
  "timeout_millis": 60000,
50
55
  "retry_codes_name": "non_idempotent",
51
56
  "retry_params_name": "default"
52
57
  },
53
- "UpdateSink": {
58
+ "ListSinks": {
54
59
  "timeout_millis": 60000,
55
- "retry_codes_name": "non_idempotent",
60
+ "retry_codes_name": "idempotent2",
56
61
  "retry_params_name": "default"
57
62
  },
58
- "DeleteSink": {
63
+ "GetSink": {
64
+ "timeout_millis": 60000,
65
+ "retry_codes_name": "idempotent2",
66
+ "retry_params_name": "default"
67
+ },
68
+ "CreateSink": {
59
69
  "timeout_millis": 60000,
60
70
  "retry_codes_name": "non_idempotent",
61
71
  "retry_params_name": "default"
62
72
  },
63
73
  "ListExclusions": {
64
74
  "timeout_millis": 60000,
65
- "retry_codes_name": "idempotent",
75
+ "retry_codes_name": "idempotent2",
66
76
  "retry_params_name": "default"
67
77
  },
68
78
  "GetExclusion": {
69
79
  "timeout_millis": 60000,
70
- "retry_codes_name": "idempotent",
80
+ "retry_codes_name": "idempotent2",
71
81
  "retry_params_name": "default"
72
82
  },
73
83
  "CreateExclusion": {
@@ -80,14 +90,9 @@
80
90
  "retry_codes_name": "non_idempotent",
81
91
  "retry_params_name": "default"
82
92
  },
83
- "DeleteExclusion": {
84
- "timeout_millis": 60000,
85
- "retry_codes_name": "non_idempotent",
86
- "retry_params_name": "default"
87
- },
88
93
  "GetCmekSettings": {
89
94
  "timeout_millis": 60000,
90
- "retry_codes_name": "idempotent",
95
+ "retry_codes_name": "idempotent2",
91
96
  "retry_params_name": "default"
92
97
  },
93
98
  "UpdateCmekSettings": {
@@ -282,11 +282,6 @@ module Google
282
282
  &Google::Logging::V2::LoggingServiceV2::Stub.method(:new)
283
283
  )
284
284
 
285
- @write_log_entries = Google::Gax.create_api_call(
286
- @logging_service_v2_stub.method(:write_log_entries),
287
- defaults["write_log_entries"],
288
- exception_transformer: exception_transformer
289
- )
290
285
  @delete_log = Google::Gax.create_api_call(
291
286
  @logging_service_v2_stub.method(:delete_log),
292
287
  defaults["delete_log"],
@@ -300,6 +295,11 @@ module Google
300
295
  defaults["list_log_entries"],
301
296
  exception_transformer: exception_transformer
302
297
  )
298
+ @write_log_entries = Google::Gax.create_api_call(
299
+ @logging_service_v2_stub.method(:write_log_entries),
300
+ defaults["write_log_entries"],
301
+ exception_transformer: exception_transformer
302
+ )
303
303
  @list_monitored_resource_descriptors = Google::Gax.create_api_call(
304
304
  @logging_service_v2_stub.method(:list_monitored_resource_descriptors),
305
305
  defaults["list_monitored_resource_descriptors"],
@@ -317,122 +317,6 @@ module Google
317
317
 
318
318
  # Service calls
319
319
 
320
- # Writes log entries to Logging. This API method is the
321
- # only way to send log entries to Logging. This method
322
- # is used, directly or indirectly, by the Logging agent
323
- # (fluentd) and all logging libraries configured to use Logging.
324
- # A single request may contain log entries for a maximum of 1000
325
- # different resources (projects, organizations, billing accounts or
326
- # folders)
327
- #
328
- # @param entries [Array<Google::Logging::V2::LogEntry | Hash>]
329
- # Required. The log entries to send to Logging. The order of log
330
- # entries in this list does not matter. Values supplied in this method's
331
- # `log_name`, `resource`, and `labels` fields are copied into those log
332
- # entries in this list that do not include values for their corresponding
333
- # fields. For more information, see the
334
- # {Google::Logging::V2::LogEntry LogEntry} type.
335
- #
336
- # If the `timestamp` or `insert_id` fields are missing in log entries, then
337
- # this method supplies the current time or a unique identifier, respectively.
338
- # The supplied values are chosen so that, among the log entries that did not
339
- # supply their own values, the entries earlier in the list will sort before
340
- # the entries later in the list. See the `entries.list` method.
341
- #
342
- # Log entries with timestamps that are more than the
343
- # [logs retention period](https://cloud.google.com/logging/quota-policy) in the past or more than
344
- # 24 hours in the future will not be available when calling `entries.list`.
345
- # However, those log entries can still be
346
- # [exported with LogSinks](https://cloud.google.com/logging/docs/api/tasks/exporting-logs).
347
- #
348
- # To improve throughput and to avoid exceeding the
349
- # [quota limit](https://cloud.google.com/logging/quota-policy) for calls to `entries.write`,
350
- # you should try to include several log entries in this list,
351
- # rather than calling this method for each individual log entry.
352
- # A hash of the same form as `Google::Logging::V2::LogEntry`
353
- # can also be provided.
354
- # @param log_name [String]
355
- # Optional. A default log resource name that is assigned to all log entries
356
- # in `entries` that do not specify a value for `log_name`:
357
- #
358
- # "projects/[PROJECT_ID]/logs/[LOG_ID]"
359
- # "organizations/[ORGANIZATION_ID]/logs/[LOG_ID]"
360
- # "billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]"
361
- # "folders/[FOLDER_ID]/logs/[LOG_ID]"
362
- #
363
- # `[LOG_ID]` must be URL-encoded. For example:
364
- #
365
- # "projects/my-project-id/logs/syslog"
366
- # "organizations/1234567890/logs/cloudresourcemanager.googleapis.com%2Factivity"
367
- #
368
- # The permission `logging.logEntries.create` is needed on each project,
369
- # organization, billing account, or folder that is receiving new log
370
- # entries, whether the resource is specified in `logName` or in an
371
- # individual log entry.
372
- # @param resource [Google::Api::MonitoredResource | Hash]
373
- # Optional. A default monitored resource object that is assigned to all log
374
- # entries in `entries` that do not specify a value for `resource`. Example:
375
- #
376
- # { "type": "gce_instance",
377
- # "labels": {
378
- # "zone": "us-central1-a", "instance_id": "00000000000000000000" }}
379
- #
380
- # See {Google::Logging::V2::LogEntry LogEntry}.
381
- # A hash of the same form as `Google::Api::MonitoredResource`
382
- # can also be provided.
383
- # @param labels [Hash{String => String}]
384
- # Optional. Default labels that are added to the `labels` field of all log
385
- # entries in `entries`. If a log entry already has a label with the same key
386
- # as a label in this parameter, then the log entry's label is not changed.
387
- # See {Google::Logging::V2::LogEntry LogEntry}.
388
- # @param partial_success [true, false]
389
- # Optional. Whether valid entries should be written even if some other
390
- # entries fail due to INVALID_ARGUMENT or PERMISSION_DENIED errors. If any
391
- # entry is not written, then the response status is the error associated
392
- # with one of the failed entries and the response includes error details
393
- # keyed by the entries' zero-based index in the `entries.write` method.
394
- # @param dry_run [true, false]
395
- # Optional. If true, the request should expect normal response, but the
396
- # entries won't be persisted nor exported. Useful for checking whether the
397
- # logging API endpoints are working properly before sending valuable data.
398
- # @param options [Google::Gax::CallOptions]
399
- # Overrides the default settings for this call, e.g, timeout,
400
- # retries, etc.
401
- # @yield [result, operation] Access the result along with the RPC operation
402
- # @yieldparam result [Google::Logging::V2::WriteLogEntriesResponse]
403
- # @yieldparam operation [GRPC::ActiveCall::Operation]
404
- # @return [Google::Logging::V2::WriteLogEntriesResponse]
405
- # @raise [Google::Gax::GaxError] if the RPC is aborted.
406
- # @example
407
- # require "google/cloud/logging/v2"
408
- #
409
- # logging_client = Google::Cloud::Logging::V2::LoggingServiceV2Client.new
410
- #
411
- # # TODO: Initialize `entries`:
412
- # entries = []
413
- # response = logging_client.write_log_entries(entries)
414
-
415
- def write_log_entries \
416
- entries,
417
- log_name: nil,
418
- resource: nil,
419
- labels: nil,
420
- partial_success: nil,
421
- dry_run: nil,
422
- options: nil,
423
- &block
424
- req = {
425
- entries: entries,
426
- log_name: log_name,
427
- resource: resource,
428
- labels: labels,
429
- partial_success: partial_success,
430
- dry_run: dry_run
431
- }.delete_if { |_, v| v.nil? }
432
- req = Google::Gax::to_proto(req, Google::Logging::V2::WriteLogEntriesRequest)
433
- @write_log_entries.call(req, options, &block)
434
- end
435
-
436
320
  # Deletes all the log entries in a log. The log reappears if it receives new
437
321
  # entries. Log entries written shortly before the delete operation might not
438
322
  # be deleted. Entries received after the delete operation with a timestamp
@@ -565,6 +449,122 @@ module Google
565
449
  @list_log_entries.call(req, options, &block)
566
450
  end
567
451
 
452
+ # Writes log entries to Logging. This API method is the
453
+ # only way to send log entries to Logging. This method
454
+ # is used, directly or indirectly, by the Logging agent
455
+ # (fluentd) and all logging libraries configured to use Logging.
456
+ # A single request may contain log entries for a maximum of 1000
457
+ # different resources (projects, organizations, billing accounts or
458
+ # folders)
459
+ #
460
+ # @param entries [Array<Google::Logging::V2::LogEntry | Hash>]
461
+ # Required. The log entries to send to Logging. The order of log
462
+ # entries in this list does not matter. Values supplied in this method's
463
+ # `log_name`, `resource`, and `labels` fields are copied into those log
464
+ # entries in this list that do not include values for their corresponding
465
+ # fields. For more information, see the
466
+ # {Google::Logging::V2::LogEntry LogEntry} type.
467
+ #
468
+ # If the `timestamp` or `insert_id` fields are missing in log entries, then
469
+ # this method supplies the current time or a unique identifier, respectively.
470
+ # The supplied values are chosen so that, among the log entries that did not
471
+ # supply their own values, the entries earlier in the list will sort before
472
+ # the entries later in the list. See the `entries.list` method.
473
+ #
474
+ # Log entries with timestamps that are more than the
475
+ # [logs retention period](https://cloud.google.com/logging/quota-policy) in the past or more than
476
+ # 24 hours in the future will not be available when calling `entries.list`.
477
+ # However, those log entries can still be
478
+ # [exported with LogSinks](https://cloud.google.com/logging/docs/api/tasks/exporting-logs).
479
+ #
480
+ # To improve throughput and to avoid exceeding the
481
+ # [quota limit](https://cloud.google.com/logging/quota-policy) for calls to `entries.write`,
482
+ # you should try to include several log entries in this list,
483
+ # rather than calling this method for each individual log entry.
484
+ # A hash of the same form as `Google::Logging::V2::LogEntry`
485
+ # can also be provided.
486
+ # @param log_name [String]
487
+ # Optional. A default log resource name that is assigned to all log entries
488
+ # in `entries` that do not specify a value for `log_name`:
489
+ #
490
+ # "projects/[PROJECT_ID]/logs/[LOG_ID]"
491
+ # "organizations/[ORGANIZATION_ID]/logs/[LOG_ID]"
492
+ # "billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]"
493
+ # "folders/[FOLDER_ID]/logs/[LOG_ID]"
494
+ #
495
+ # `[LOG_ID]` must be URL-encoded. For example:
496
+ #
497
+ # "projects/my-project-id/logs/syslog"
498
+ # "organizations/1234567890/logs/cloudresourcemanager.googleapis.com%2Factivity"
499
+ #
500
+ # The permission `logging.logEntries.create` is needed on each project,
501
+ # organization, billing account, or folder that is receiving new log
502
+ # entries, whether the resource is specified in `logName` or in an
503
+ # individual log entry.
504
+ # @param resource [Google::Api::MonitoredResource | Hash]
505
+ # Optional. A default monitored resource object that is assigned to all log
506
+ # entries in `entries` that do not specify a value for `resource`. Example:
507
+ #
508
+ # { "type": "gce_instance",
509
+ # "labels": {
510
+ # "zone": "us-central1-a", "instance_id": "00000000000000000000" }}
511
+ #
512
+ # See {Google::Logging::V2::LogEntry LogEntry}.
513
+ # A hash of the same form as `Google::Api::MonitoredResource`
514
+ # can also be provided.
515
+ # @param labels [Hash{String => String}]
516
+ # Optional. Default labels that are added to the `labels` field of all log
517
+ # entries in `entries`. If a log entry already has a label with the same key
518
+ # as a label in this parameter, then the log entry's label is not changed.
519
+ # See {Google::Logging::V2::LogEntry LogEntry}.
520
+ # @param partial_success [true, false]
521
+ # Optional. Whether valid entries should be written even if some other
522
+ # entries fail due to INVALID_ARGUMENT or PERMISSION_DENIED errors. If any
523
+ # entry is not written, then the response status is the error associated
524
+ # with one of the failed entries and the response includes error details
525
+ # keyed by the entries' zero-based index in the `entries.write` method.
526
+ # @param dry_run [true, false]
527
+ # Optional. If true, the request should expect normal response, but the
528
+ # entries won't be persisted nor exported. Useful for checking whether the
529
+ # logging API endpoints are working properly before sending valuable data.
530
+ # @param options [Google::Gax::CallOptions]
531
+ # Overrides the default settings for this call, e.g, timeout,
532
+ # retries, etc.
533
+ # @yield [result, operation] Access the result along with the RPC operation
534
+ # @yieldparam result [Google::Logging::V2::WriteLogEntriesResponse]
535
+ # @yieldparam operation [GRPC::ActiveCall::Operation]
536
+ # @return [Google::Logging::V2::WriteLogEntriesResponse]
537
+ # @raise [Google::Gax::GaxError] if the RPC is aborted.
538
+ # @example
539
+ # require "google/cloud/logging/v2"
540
+ #
541
+ # logging_client = Google::Cloud::Logging::V2::LoggingServiceV2Client.new
542
+ #
543
+ # # TODO: Initialize `entries`:
544
+ # entries = []
545
+ # response = logging_client.write_log_entries(entries)
546
+
547
+ def write_log_entries \
548
+ entries,
549
+ log_name: nil,
550
+ resource: nil,
551
+ labels: nil,
552
+ partial_success: nil,
553
+ dry_run: nil,
554
+ options: nil,
555
+ &block
556
+ req = {
557
+ entries: entries,
558
+ log_name: log_name,
559
+ resource: resource,
560
+ labels: labels,
561
+ partial_success: partial_success,
562
+ dry_run: dry_run
563
+ }.delete_if { |_, v| v.nil? }
564
+ req = Google::Gax::to_proto(req, Google::Logging::V2::WriteLogEntriesRequest)
565
+ @write_log_entries.call(req, options, &block)
566
+ end
567
+
568
568
  # Lists the descriptors for monitored resource types used by Logging.
569
569
  #
570
570
  # @param page_size [Integer]
@@ -4,9 +4,14 @@
4
4
  "retry_codes": {
5
5
  "idempotent": [
6
6
  "DEADLINE_EXCEEDED",
7
+ "INTERNAL",
7
8
  "UNAVAILABLE"
8
9
  ],
9
- "non_idempotent": []
10
+ "non_idempotent": [],
11
+ "idempotent2": [
12
+ "DEADLINE_EXCEEDED",
13
+ "UNAVAILABLE"
14
+ ]
10
15
  },
11
16
  "retry_params": {
12
17
  "default": {
@@ -20,9 +25,19 @@
20
25
  }
21
26
  },
22
27
  "methods": {
28
+ "DeleteLog": {
29
+ "timeout_millis": 60000,
30
+ "retry_codes_name": "idempotent",
31
+ "retry_params_name": "default"
32
+ },
33
+ "ListLogEntries": {
34
+ "timeout_millis": 10000,
35
+ "retry_codes_name": "idempotent",
36
+ "retry_params_name": "default"
37
+ },
23
38
  "WriteLogEntries": {
24
39
  "timeout_millis": 60000,
25
- "retry_codes_name": "non_idempotent",
40
+ "retry_codes_name": "idempotent",
26
41
  "retry_params_name": "default",
27
42
  "bundling": {
28
43
  "element_count_threshold": 1000,
@@ -30,24 +45,14 @@
30
45
  "delay_threshold_millis": 50
31
46
  }
32
47
  },
33
- "DeleteLog": {
34
- "timeout_millis": 60000,
35
- "retry_codes_name": "non_idempotent",
36
- "retry_params_name": "default"
37
- },
38
- "ListLogEntries": {
39
- "timeout_millis": 10000,
40
- "retry_codes_name": "non_idempotent",
41
- "retry_params_name": "default"
42
- },
43
48
  "ListMonitoredResourceDescriptors": {
44
49
  "timeout_millis": 60000,
45
- "retry_codes_name": "idempotent",
50
+ "retry_codes_name": "idempotent2",
46
51
  "retry_params_name": "default"
47
52
  },
48
53
  "ListLogs": {
49
54
  "timeout_millis": 60000,
50
- "retry_codes_name": "idempotent",
55
+ "retry_codes_name": "idempotent2",
51
56
  "retry_params_name": "default"
52
57
  }
53
58
  }
@@ -216,6 +216,22 @@ module Google
216
216
  &Google::Logging::V2::MetricsServiceV2::Stub.method(:new)
217
217
  )
218
218
 
219
+ @update_log_metric = Google::Gax.create_api_call(
220
+ @metrics_service_v2_stub.method(:update_log_metric),
221
+ defaults["update_log_metric"],
222
+ exception_transformer: exception_transformer,
223
+ params_extractor: proc do |request|
224
+ {'metric_name' => request.metric_name}
225
+ end
226
+ )
227
+ @delete_log_metric = Google::Gax.create_api_call(
228
+ @metrics_service_v2_stub.method(:delete_log_metric),
229
+ defaults["delete_log_metric"],
230
+ exception_transformer: exception_transformer,
231
+ params_extractor: proc do |request|
232
+ {'metric_name' => request.metric_name}
233
+ end
234
+ )
219
235
  @list_log_metrics = Google::Gax.create_api_call(
220
236
  @metrics_service_v2_stub.method(:list_log_metrics),
221
237
  defaults["list_log_metrics"],
@@ -240,26 +256,87 @@ module Google
240
256
  {'parent' => request.parent}
241
257
  end
242
258
  )
243
- @update_log_metric = Google::Gax.create_api_call(
244
- @metrics_service_v2_stub.method(:update_log_metric),
245
- defaults["update_log_metric"],
246
- exception_transformer: exception_transformer,
247
- params_extractor: proc do |request|
248
- {'metric_name' => request.metric_name}
249
- end
250
- )
251
- @delete_log_metric = Google::Gax.create_api_call(
252
- @metrics_service_v2_stub.method(:delete_log_metric),
253
- defaults["delete_log_metric"],
254
- exception_transformer: exception_transformer,
255
- params_extractor: proc do |request|
256
- {'metric_name' => request.metric_name}
257
- end
258
- )
259
259
  end
260
260
 
261
261
  # Service calls
262
262
 
263
+ # Creates or updates a logs-based metric.
264
+ #
265
+ # @param metric_name [String]
266
+ # Required. The resource name of the metric to update:
267
+ #
268
+ # "projects/[PROJECT_ID]/metrics/[METRIC_ID]"
269
+ #
270
+ # The updated metric must be provided in the request and it's
271
+ # `name` field must be the same as `[METRIC_ID]` If the metric
272
+ # does not exist in `[PROJECT_ID]`, then a new metric is created.
273
+ # @param metric [Google::Logging::V2::LogMetric | Hash]
274
+ # Required. The updated metric.
275
+ # A hash of the same form as `Google::Logging::V2::LogMetric`
276
+ # can also be provided.
277
+ # @param options [Google::Gax::CallOptions]
278
+ # Overrides the default settings for this call, e.g, timeout,
279
+ # retries, etc.
280
+ # @yield [result, operation] Access the result along with the RPC operation
281
+ # @yieldparam result [Google::Logging::V2::LogMetric]
282
+ # @yieldparam operation [GRPC::ActiveCall::Operation]
283
+ # @return [Google::Logging::V2::LogMetric]
284
+ # @raise [Google::Gax::GaxError] if the RPC is aborted.
285
+ # @example
286
+ # require "google/cloud/logging/v2"
287
+ #
288
+ # metrics_client = Google::Cloud::Logging::V2::MetricsServiceV2Client.new
289
+ # formatted_metric_name = Google::Cloud::Logging::V2::MetricsServiceV2Client.log_metric_path("[PROJECT]", "[METRIC]")
290
+ #
291
+ # # TODO: Initialize `metric`:
292
+ # metric = {}
293
+ # response = metrics_client.update_log_metric(formatted_metric_name, metric)
294
+
295
+ def update_log_metric \
296
+ metric_name,
297
+ metric,
298
+ options: nil,
299
+ &block
300
+ req = {
301
+ metric_name: metric_name,
302
+ metric: metric
303
+ }.delete_if { |_, v| v.nil? }
304
+ req = Google::Gax::to_proto(req, Google::Logging::V2::UpdateLogMetricRequest)
305
+ @update_log_metric.call(req, options, &block)
306
+ end
307
+
308
+ # Deletes a logs-based metric.
309
+ #
310
+ # @param metric_name [String]
311
+ # Required. The resource name of the metric to delete:
312
+ #
313
+ # "projects/[PROJECT_ID]/metrics/[METRIC_ID]"
314
+ # @param options [Google::Gax::CallOptions]
315
+ # Overrides the default settings for this call, e.g, timeout,
316
+ # retries, etc.
317
+ # @yield [result, operation] Access the result along with the RPC operation
318
+ # @yieldparam result []
319
+ # @yieldparam operation [GRPC::ActiveCall::Operation]
320
+ # @raise [Google::Gax::GaxError] if the RPC is aborted.
321
+ # @example
322
+ # require "google/cloud/logging/v2"
323
+ #
324
+ # metrics_client = Google::Cloud::Logging::V2::MetricsServiceV2Client.new
325
+ # formatted_metric_name = Google::Cloud::Logging::V2::MetricsServiceV2Client.log_metric_path("[PROJECT]", "[METRIC]")
326
+ # metrics_client.delete_log_metric(formatted_metric_name)
327
+
328
+ def delete_log_metric \
329
+ metric_name,
330
+ options: nil,
331
+ &block
332
+ req = {
333
+ metric_name: metric_name
334
+ }.delete_if { |_, v| v.nil? }
335
+ req = Google::Gax::to_proto(req, Google::Logging::V2::DeleteLogMetricRequest)
336
+ @delete_log_metric.call(req, options, &block)
337
+ nil
338
+ end
339
+
263
340
  # Lists logs-based metrics.
264
341
  #
265
342
  # @param parent [String]
@@ -391,83 +468,6 @@ module Google
391
468
  req = Google::Gax::to_proto(req, Google::Logging::V2::CreateLogMetricRequest)
392
469
  @create_log_metric.call(req, options, &block)
393
470
  end
394
-
395
- # Creates or updates a logs-based metric.
396
- #
397
- # @param metric_name [String]
398
- # Required. The resource name of the metric to update:
399
- #
400
- # "projects/[PROJECT_ID]/metrics/[METRIC_ID]"
401
- #
402
- # The updated metric must be provided in the request and it's
403
- # `name` field must be the same as `[METRIC_ID]` If the metric
404
- # does not exist in `[PROJECT_ID]`, then a new metric is created.
405
- # @param metric [Google::Logging::V2::LogMetric | Hash]
406
- # Required. The updated metric.
407
- # A hash of the same form as `Google::Logging::V2::LogMetric`
408
- # can also be provided.
409
- # @param options [Google::Gax::CallOptions]
410
- # Overrides the default settings for this call, e.g, timeout,
411
- # retries, etc.
412
- # @yield [result, operation] Access the result along with the RPC operation
413
- # @yieldparam result [Google::Logging::V2::LogMetric]
414
- # @yieldparam operation [GRPC::ActiveCall::Operation]
415
- # @return [Google::Logging::V2::LogMetric]
416
- # @raise [Google::Gax::GaxError] if the RPC is aborted.
417
- # @example
418
- # require "google/cloud/logging/v2"
419
- #
420
- # metrics_client = Google::Cloud::Logging::V2::MetricsServiceV2Client.new
421
- # formatted_metric_name = Google::Cloud::Logging::V2::MetricsServiceV2Client.log_metric_path("[PROJECT]", "[METRIC]")
422
- #
423
- # # TODO: Initialize `metric`:
424
- # metric = {}
425
- # response = metrics_client.update_log_metric(formatted_metric_name, metric)
426
-
427
- def update_log_metric \
428
- metric_name,
429
- metric,
430
- options: nil,
431
- &block
432
- req = {
433
- metric_name: metric_name,
434
- metric: metric
435
- }.delete_if { |_, v| v.nil? }
436
- req = Google::Gax::to_proto(req, Google::Logging::V2::UpdateLogMetricRequest)
437
- @update_log_metric.call(req, options, &block)
438
- end
439
-
440
- # Deletes a logs-based metric.
441
- #
442
- # @param metric_name [String]
443
- # Required. The resource name of the metric to delete:
444
- #
445
- # "projects/[PROJECT_ID]/metrics/[METRIC_ID]"
446
- # @param options [Google::Gax::CallOptions]
447
- # Overrides the default settings for this call, e.g, timeout,
448
- # retries, etc.
449
- # @yield [result, operation] Access the result along with the RPC operation
450
- # @yieldparam result []
451
- # @yieldparam operation [GRPC::ActiveCall::Operation]
452
- # @raise [Google::Gax::GaxError] if the RPC is aborted.
453
- # @example
454
- # require "google/cloud/logging/v2"
455
- #
456
- # metrics_client = Google::Cloud::Logging::V2::MetricsServiceV2Client.new
457
- # formatted_metric_name = Google::Cloud::Logging::V2::MetricsServiceV2Client.log_metric_path("[PROJECT]", "[METRIC]")
458
- # metrics_client.delete_log_metric(formatted_metric_name)
459
-
460
- def delete_log_metric \
461
- metric_name,
462
- options: nil,
463
- &block
464
- req = {
465
- metric_name: metric_name
466
- }.delete_if { |_, v| v.nil? }
467
- req = Google::Gax::to_proto(req, Google::Logging::V2::DeleteLogMetricRequest)
468
- @delete_log_metric.call(req, options, &block)
469
- nil
470
- end
471
471
  end
472
472
  end
473
473
  end
@@ -4,9 +4,14 @@
4
4
  "retry_codes": {
5
5
  "idempotent": [
6
6
  "DEADLINE_EXCEEDED",
7
+ "INTERNAL",
7
8
  "UNAVAILABLE"
8
9
  ],
9
- "non_idempotent": []
10
+ "non_idempotent": [],
11
+ "idempotent2": [
12
+ "DEADLINE_EXCEEDED",
13
+ "UNAVAILABLE"
14
+ ]
10
15
  },
11
16
  "retry_params": {
12
17
  "default": {
@@ -20,27 +25,27 @@
20
25
  }
21
26
  },
22
27
  "methods": {
23
- "ListLogMetrics": {
28
+ "UpdateLogMetric": {
24
29
  "timeout_millis": 60000,
25
30
  "retry_codes_name": "idempotent",
26
31
  "retry_params_name": "default"
27
32
  },
28
- "GetLogMetric": {
33
+ "DeleteLogMetric": {
29
34
  "timeout_millis": 60000,
30
35
  "retry_codes_name": "idempotent",
31
36
  "retry_params_name": "default"
32
37
  },
33
- "CreateLogMetric": {
38
+ "ListLogMetrics": {
34
39
  "timeout_millis": 60000,
35
- "retry_codes_name": "non_idempotent",
40
+ "retry_codes_name": "idempotent2",
36
41
  "retry_params_name": "default"
37
42
  },
38
- "UpdateLogMetric": {
43
+ "GetLogMetric": {
39
44
  "timeout_millis": 60000,
40
- "retry_codes_name": "non_idempotent",
45
+ "retry_codes_name": "idempotent2",
41
46
  "retry_params_name": "default"
42
47
  },
43
- "DeleteLogMetric": {
48
+ "CreateLogMetric": {
44
49
  "timeout_millis": 60000,
45
50
  "retry_codes_name": "non_idempotent",
46
51
  "retry_params_name": "default"
@@ -16,7 +16,7 @@
16
16
  module Google
17
17
  module Cloud
18
18
  module Logging
19
- VERSION = "1.10.5".freeze
19
+ VERSION = "1.10.6".freeze
20
20
  end
21
21
  end
22
22
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-logging
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.10.5
4
+ version: 1.10.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mike Moore
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2020-05-05 00:00:00.000000000 Z
12
+ date: 2020-05-19 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: google-cloud-core