google-cloud-recommender-v1 0.18.0 → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d735baed6573e00ce3e80e8e4555fa780e79140e14b1d8b88d4e4b9cbc79fb74
4
- data.tar.gz: b68143c6c5ad3c4fb4f8d24ebb9cf12fa4fdd7c5f7274079fe653d5bcc1f53dc
3
+ metadata.gz: 13600da3830ecdc249469053d8d35364b9107b44c1974593ef9c0c8a24903792
4
+ data.tar.gz: f89efd9e821ad938ceb82ff736badbd8d283a641459451092061a88abf0c4cee
5
5
  SHA512:
6
- metadata.gz: 06d01c1975a77802138b9181e1dcfba586afd9df252014301b43f19abac45826fb2456fd24a445ece59f04a07a94995bb346423db385195e88b6725d84b08510
7
- data.tar.gz: f4ce5130539dd3fc274f853dbcb7354afffa59ddc15521b69d422dd826fdf6966f7ffd0ca44a01053b9bdb6006c8476ff4f5c574ae6a049510ba6a42c0660de4
6
+ metadata.gz: b409ebb9bd8420e64f51da4152d7a20ac78770fde645ca89aba51f5b4971c8dcf7cd42ddda446912f1735340ea845b6aa9898849a3ce6799b518de0e813c2bd9
7
+ data.tar.gz: 266fc5e337f1da2152e102af86ec4369df0a0152f653a7051ae76a4e8d49d2356ab17359eebfb0012c60ccfb5a73641a57388f503907928222fcffe6f99eb0d4
@@ -33,6 +33,9 @@ module Google
33
33
  # based on analysis of user resources, configuration and monitoring metrics.
34
34
  #
35
35
  class Client
36
+ # @private
37
+ API_VERSION = ""
38
+
36
39
  # @private
37
40
  DEFAULT_ENDPOINT_TEMPLATE = "recommender.$UNIVERSE_DOMAIN$"
38
41
 
@@ -305,10 +308,11 @@ module Google
305
308
  # Customize the options with defaults
306
309
  metadata = @config.rpcs.list_insights.metadata.to_h
307
310
 
308
- # Set x-goog-api-client and x-goog-user-project headers
311
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
309
312
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
310
313
  lib_name: @config.lib_name, lib_version: @config.lib_version,
311
314
  gapic_version: ::Google::Cloud::Recommender::V1::VERSION
315
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
312
316
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
313
317
 
314
318
  header_params = {}
@@ -392,10 +396,11 @@ module Google
392
396
  # Customize the options with defaults
393
397
  metadata = @config.rpcs.get_insight.metadata.to_h
394
398
 
395
- # Set x-goog-api-client and x-goog-user-project headers
399
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
396
400
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
397
401
  lib_name: @config.lib_name, lib_version: @config.lib_version,
398
402
  gapic_version: ::Google::Cloud::Recommender::V1::VERSION
403
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
399
404
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
400
405
 
401
406
  header_params = {}
@@ -487,10 +492,11 @@ module Google
487
492
  # Customize the options with defaults
488
493
  metadata = @config.rpcs.mark_insight_accepted.metadata.to_h
489
494
 
490
- # Set x-goog-api-client and x-goog-user-project headers
495
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
491
496
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
492
497
  lib_name: @config.lib_name, lib_version: @config.lib_version,
493
498
  gapic_version: ::Google::Cloud::Recommender::V1::VERSION
499
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
494
500
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
495
501
 
496
502
  header_params = {}
@@ -631,10 +637,11 @@ module Google
631
637
  # Customize the options with defaults
632
638
  metadata = @config.rpcs.list_recommendations.metadata.to_h
633
639
 
634
- # Set x-goog-api-client and x-goog-user-project headers
640
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
635
641
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
636
642
  lib_name: @config.lib_name, lib_version: @config.lib_version,
637
643
  gapic_version: ::Google::Cloud::Recommender::V1::VERSION
644
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
638
645
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
639
646
 
640
647
  header_params = {}
@@ -718,10 +725,11 @@ module Google
718
725
  # Customize the options with defaults
719
726
  metadata = @config.rpcs.get_recommendation.metadata.to_h
720
727
 
721
- # Set x-goog-api-client and x-goog-user-project headers
728
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
722
729
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
723
730
  lib_name: @config.lib_name, lib_version: @config.lib_version,
724
731
  gapic_version: ::Google::Cloud::Recommender::V1::VERSION
732
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
725
733
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
726
734
 
727
735
  header_params = {}
@@ -813,10 +821,11 @@ module Google
813
821
  # Customize the options with defaults
814
822
  metadata = @config.rpcs.mark_recommendation_dismissed.metadata.to_h
815
823
 
816
- # Set x-goog-api-client and x-goog-user-project headers
824
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
817
825
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
818
826
  lib_name: @config.lib_name, lib_version: @config.lib_version,
819
827
  gapic_version: ::Google::Cloud::Recommender::V1::VERSION
828
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
820
829
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
821
830
 
822
831
  header_params = {}
@@ -914,10 +923,11 @@ module Google
914
923
  # Customize the options with defaults
915
924
  metadata = @config.rpcs.mark_recommendation_claimed.metadata.to_h
916
925
 
917
- # Set x-goog-api-client and x-goog-user-project headers
926
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
918
927
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
919
928
  lib_name: @config.lib_name, lib_version: @config.lib_version,
920
929
  gapic_version: ::Google::Cloud::Recommender::V1::VERSION
930
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
921
931
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
922
932
 
923
933
  header_params = {}
@@ -1016,10 +1026,11 @@ module Google
1016
1026
  # Customize the options with defaults
1017
1027
  metadata = @config.rpcs.mark_recommendation_succeeded.metadata.to_h
1018
1028
 
1019
- # Set x-goog-api-client and x-goog-user-project headers
1029
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1020
1030
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1021
1031
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1022
1032
  gapic_version: ::Google::Cloud::Recommender::V1::VERSION
1033
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1023
1034
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1024
1035
 
1025
1036
  header_params = {}
@@ -1118,10 +1129,11 @@ module Google
1118
1129
  # Customize the options with defaults
1119
1130
  metadata = @config.rpcs.mark_recommendation_failed.metadata.to_h
1120
1131
 
1121
- # Set x-goog-api-client and x-goog-user-project headers
1132
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1122
1133
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1123
1134
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1124
1135
  gapic_version: ::Google::Cloud::Recommender::V1::VERSION
1136
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1125
1137
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1126
1138
 
1127
1139
  header_params = {}
@@ -1214,10 +1226,11 @@ module Google
1214
1226
  # Customize the options with defaults
1215
1227
  metadata = @config.rpcs.get_recommender_config.metadata.to_h
1216
1228
 
1217
- # Set x-goog-api-client and x-goog-user-project headers
1229
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1218
1230
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1219
1231
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1220
1232
  gapic_version: ::Google::Cloud::Recommender::V1::VERSION
1233
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1221
1234
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1222
1235
 
1223
1236
  header_params = {}
@@ -1305,10 +1318,11 @@ module Google
1305
1318
  # Customize the options with defaults
1306
1319
  metadata = @config.rpcs.update_recommender_config.metadata.to_h
1307
1320
 
1308
- # Set x-goog-api-client and x-goog-user-project headers
1321
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1309
1322
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1310
1323
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1311
1324
  gapic_version: ::Google::Cloud::Recommender::V1::VERSION
1325
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1312
1326
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1313
1327
 
1314
1328
  header_params = {}
@@ -1401,10 +1415,11 @@ module Google
1401
1415
  # Customize the options with defaults
1402
1416
  metadata = @config.rpcs.get_insight_type_config.metadata.to_h
1403
1417
 
1404
- # Set x-goog-api-client and x-goog-user-project headers
1418
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1405
1419
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1406
1420
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1407
1421
  gapic_version: ::Google::Cloud::Recommender::V1::VERSION
1422
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1408
1423
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1409
1424
 
1410
1425
  header_params = {}
@@ -1492,10 +1507,11 @@ module Google
1492
1507
  # Customize the options with defaults
1493
1508
  metadata = @config.rpcs.update_insight_type_config.metadata.to_h
1494
1509
 
1495
- # Set x-goog-api-client and x-goog-user-project headers
1510
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1496
1511
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1497
1512
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1498
1513
  gapic_version: ::Google::Cloud::Recommender::V1::VERSION
1514
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1499
1515
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1500
1516
 
1501
1517
  header_params = {}
@@ -35,6 +35,9 @@ module Google
35
35
  # based on analysis of user resources, configuration and monitoring metrics.
36
36
  #
37
37
  class Client
38
+ # @private
39
+ API_VERSION = ""
40
+
38
41
  # @private
39
42
  DEFAULT_ENDPOINT_TEMPLATE = "recommender.$UNIVERSE_DOMAIN$"
40
43
 
@@ -297,12 +300,13 @@ module Google
297
300
  # Customize the options with defaults
298
301
  call_metadata = @config.rpcs.list_insights.metadata.to_h
299
302
 
300
- # Set x-goog-api-client and x-goog-user-project headers
303
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
301
304
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
302
305
  lib_name: @config.lib_name, lib_version: @config.lib_version,
303
306
  gapic_version: ::Google::Cloud::Recommender::V1::VERSION,
304
307
  transports_version_send: [:rest]
305
308
 
309
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
306
310
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
307
311
 
308
312
  options.apply_defaults timeout: @config.rpcs.list_insights.timeout,
@@ -377,12 +381,13 @@ module Google
377
381
  # Customize the options with defaults
378
382
  call_metadata = @config.rpcs.get_insight.metadata.to_h
379
383
 
380
- # Set x-goog-api-client and x-goog-user-project headers
384
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
381
385
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
382
386
  lib_name: @config.lib_name, lib_version: @config.lib_version,
383
387
  gapic_version: ::Google::Cloud::Recommender::V1::VERSION,
384
388
  transports_version_send: [:rest]
385
389
 
390
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
386
391
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
387
392
 
388
393
  options.apply_defaults timeout: @config.rpcs.get_insight.timeout,
@@ -465,12 +470,13 @@ module Google
465
470
  # Customize the options with defaults
466
471
  call_metadata = @config.rpcs.mark_insight_accepted.metadata.to_h
467
472
 
468
- # Set x-goog-api-client and x-goog-user-project headers
473
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
469
474
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
470
475
  lib_name: @config.lib_name, lib_version: @config.lib_version,
471
476
  gapic_version: ::Google::Cloud::Recommender::V1::VERSION,
472
477
  transports_version_send: [:rest]
473
478
 
479
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
474
480
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
475
481
 
476
482
  options.apply_defaults timeout: @config.rpcs.mark_insight_accepted.timeout,
@@ -602,12 +608,13 @@ module Google
602
608
  # Customize the options with defaults
603
609
  call_metadata = @config.rpcs.list_recommendations.metadata.to_h
604
610
 
605
- # Set x-goog-api-client and x-goog-user-project headers
611
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
606
612
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
607
613
  lib_name: @config.lib_name, lib_version: @config.lib_version,
608
614
  gapic_version: ::Google::Cloud::Recommender::V1::VERSION,
609
615
  transports_version_send: [:rest]
610
616
 
617
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
611
618
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
612
619
 
613
620
  options.apply_defaults timeout: @config.rpcs.list_recommendations.timeout,
@@ -682,12 +689,13 @@ module Google
682
689
  # Customize the options with defaults
683
690
  call_metadata = @config.rpcs.get_recommendation.metadata.to_h
684
691
 
685
- # Set x-goog-api-client and x-goog-user-project headers
692
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
686
693
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
687
694
  lib_name: @config.lib_name, lib_version: @config.lib_version,
688
695
  gapic_version: ::Google::Cloud::Recommender::V1::VERSION,
689
696
  transports_version_send: [:rest]
690
697
 
698
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
691
699
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
692
700
 
693
701
  options.apply_defaults timeout: @config.rpcs.get_recommendation.timeout,
@@ -770,12 +778,13 @@ module Google
770
778
  # Customize the options with defaults
771
779
  call_metadata = @config.rpcs.mark_recommendation_dismissed.metadata.to_h
772
780
 
773
- # Set x-goog-api-client and x-goog-user-project headers
781
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
774
782
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
775
783
  lib_name: @config.lib_name, lib_version: @config.lib_version,
776
784
  gapic_version: ::Google::Cloud::Recommender::V1::VERSION,
777
785
  transports_version_send: [:rest]
778
786
 
787
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
779
788
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
780
789
 
781
790
  options.apply_defaults timeout: @config.rpcs.mark_recommendation_dismissed.timeout,
@@ -864,12 +873,13 @@ module Google
864
873
  # Customize the options with defaults
865
874
  call_metadata = @config.rpcs.mark_recommendation_claimed.metadata.to_h
866
875
 
867
- # Set x-goog-api-client and x-goog-user-project headers
876
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
868
877
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
869
878
  lib_name: @config.lib_name, lib_version: @config.lib_version,
870
879
  gapic_version: ::Google::Cloud::Recommender::V1::VERSION,
871
880
  transports_version_send: [:rest]
872
881
 
882
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
873
883
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
874
884
 
875
885
  options.apply_defaults timeout: @config.rpcs.mark_recommendation_claimed.timeout,
@@ -959,12 +969,13 @@ module Google
959
969
  # Customize the options with defaults
960
970
  call_metadata = @config.rpcs.mark_recommendation_succeeded.metadata.to_h
961
971
 
962
- # Set x-goog-api-client and x-goog-user-project headers
972
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
963
973
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
964
974
  lib_name: @config.lib_name, lib_version: @config.lib_version,
965
975
  gapic_version: ::Google::Cloud::Recommender::V1::VERSION,
966
976
  transports_version_send: [:rest]
967
977
 
978
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
968
979
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
969
980
 
970
981
  options.apply_defaults timeout: @config.rpcs.mark_recommendation_succeeded.timeout,
@@ -1054,12 +1065,13 @@ module Google
1054
1065
  # Customize the options with defaults
1055
1066
  call_metadata = @config.rpcs.mark_recommendation_failed.metadata.to_h
1056
1067
 
1057
- # Set x-goog-api-client and x-goog-user-project headers
1068
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1058
1069
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1059
1070
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1060
1071
  gapic_version: ::Google::Cloud::Recommender::V1::VERSION,
1061
1072
  transports_version_send: [:rest]
1062
1073
 
1074
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1063
1075
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1064
1076
 
1065
1077
  options.apply_defaults timeout: @config.rpcs.mark_recommendation_failed.timeout,
@@ -1143,12 +1155,13 @@ module Google
1143
1155
  # Customize the options with defaults
1144
1156
  call_metadata = @config.rpcs.get_recommender_config.metadata.to_h
1145
1157
 
1146
- # Set x-goog-api-client and x-goog-user-project headers
1158
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1147
1159
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1148
1160
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1149
1161
  gapic_version: ::Google::Cloud::Recommender::V1::VERSION,
1150
1162
  transports_version_send: [:rest]
1151
1163
 
1164
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1152
1165
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1153
1166
 
1154
1167
  options.apply_defaults timeout: @config.rpcs.get_recommender_config.timeout,
@@ -1227,12 +1240,13 @@ module Google
1227
1240
  # Customize the options with defaults
1228
1241
  call_metadata = @config.rpcs.update_recommender_config.metadata.to_h
1229
1242
 
1230
- # Set x-goog-api-client and x-goog-user-project headers
1243
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1231
1244
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1232
1245
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1233
1246
  gapic_version: ::Google::Cloud::Recommender::V1::VERSION,
1234
1247
  transports_version_send: [:rest]
1235
1248
 
1249
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1236
1250
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1237
1251
 
1238
1252
  options.apply_defaults timeout: @config.rpcs.update_recommender_config.timeout,
@@ -1316,12 +1330,13 @@ module Google
1316
1330
  # Customize the options with defaults
1317
1331
  call_metadata = @config.rpcs.get_insight_type_config.metadata.to_h
1318
1332
 
1319
- # Set x-goog-api-client and x-goog-user-project headers
1333
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1320
1334
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1321
1335
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1322
1336
  gapic_version: ::Google::Cloud::Recommender::V1::VERSION,
1323
1337
  transports_version_send: [:rest]
1324
1338
 
1339
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1325
1340
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1326
1341
 
1327
1342
  options.apply_defaults timeout: @config.rpcs.get_insight_type_config.timeout,
@@ -1400,12 +1415,13 @@ module Google
1400
1415
  # Customize the options with defaults
1401
1416
  call_metadata = @config.rpcs.update_insight_type_config.metadata.to_h
1402
1417
 
1403
- # Set x-goog-api-client and x-goog-user-project headers
1418
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1404
1419
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1405
1420
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1406
1421
  gapic_version: ::Google::Cloud::Recommender::V1::VERSION,
1407
1422
  transports_version_send: [:rest]
1408
1423
 
1424
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1409
1425
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1410
1426
 
1411
1427
  options.apply_defaults timeout: @config.rpcs.update_insight_type_config.timeout,
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Recommender
23
23
  module V1
24
- VERSION = "0.18.0"
24
+ VERSION = "1.0.0"
25
25
  end
26
26
  end
27
27
  end
@@ -118,6 +118,10 @@ module Google
118
118
  # @return [::String]
119
119
  # Optional link to proto reference documentation. Example:
120
120
  # https://cloud.google.com/pubsub/lite/docs/reference/rpc
121
+ # @!attribute [rw] rest_reference_documentation_uri
122
+ # @return [::String]
123
+ # Optional link to REST reference documentation. Example:
124
+ # https://cloud.google.com/pubsub/lite/docs/reference/rest
121
125
  class Publishing
122
126
  include ::Google::Protobuf::MessageExts
123
127
  extend ::Google::Protobuf::MessageExts::ClassMethods
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-recommender-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.18.0
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-02-26 00:00:00.000000000 Z
11
+ date: 2024-07-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common