google-cloud-recommender-v1 0.18.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/google/cloud/recommender/v1/recommender/client.rb +29 -13
- data/lib/google/cloud/recommender/v1/recommender/rest/client.rb +29 -13
- data/lib/google/cloud/recommender/v1/version.rb +1 -1
- data/proto_docs/google/api/client.rb +35 -10
- data/proto_docs/google/api/resource.rb +7 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5e98ecec5e4f4ae6da233c55e9c68b029f731d237fab967093ec2831206743a2
|
4
|
+
data.tar.gz: a1994ae4e812f1551ff5a85ef0e8a314211ddaf6b05b6fd1165a34d0e4d8ad59
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fdfb9931546070908a78f82613d22f7a6f3145bc863e088b37c6c9878ae0556de3c1292b2c5237219e89f93d96f0913f7acf4b161e1643faf0effeefdd9549d9
|
7
|
+
data.tar.gz: 18c282d3d740ec34dc31f06784e7beb6fa2d96423d6ba598366aa6c8fb036188683a54acea4288905844d7a161aa5779c74cbcfad627f8d1029b9d910d643309
|
@@ -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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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,
|
@@ -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
|
@@ -192,9 +196,26 @@ module Google
|
|
192
196
|
# @!attribute [rw] common
|
193
197
|
# @return [::Google::Api::CommonLanguageSettings]
|
194
198
|
# Some settings.
|
199
|
+
# @!attribute [rw] experimental_features
|
200
|
+
# @return [::Google::Api::PythonSettings::ExperimentalFeatures]
|
201
|
+
# Experimental features to be included during client library generation.
|
195
202
|
class PythonSettings
|
196
203
|
include ::Google::Protobuf::MessageExts
|
197
204
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
205
|
+
|
206
|
+
# Experimental features to be included during client library generation.
|
207
|
+
# These fields will be deprecated once the feature graduates and is enabled
|
208
|
+
# by default.
|
209
|
+
# @!attribute [rw] rest_async_io_enabled
|
210
|
+
# @return [::Boolean]
|
211
|
+
# Enables generation of asynchronous REST clients if `rest` transport is
|
212
|
+
# enabled. By default, asynchronous REST clients will not be generated.
|
213
|
+
# This feature will be enabled by default 1 month after launching the
|
214
|
+
# feature in preview packages.
|
215
|
+
class ExperimentalFeatures
|
216
|
+
include ::Google::Protobuf::MessageExts
|
217
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
218
|
+
end
|
198
219
|
end
|
199
220
|
|
200
221
|
# Settings for Node client libraries.
|
@@ -286,6 +307,13 @@ module Google
|
|
286
307
|
# @return [::String]
|
287
308
|
# The fully qualified name of the method, for which the options below apply.
|
288
309
|
# This is used to find the method to apply the options.
|
310
|
+
#
|
311
|
+
# Example:
|
312
|
+
#
|
313
|
+
# publishing:
|
314
|
+
# method_settings:
|
315
|
+
# - selector: google.storage.control.v2.StorageControl.CreateFolder
|
316
|
+
# # method settings for CreateFolder...
|
289
317
|
# @!attribute [rw] long_running
|
290
318
|
# @return [::Google::Api::MethodSettings::LongRunning]
|
291
319
|
# Describes settings to use for long-running operations when generating
|
@@ -294,17 +322,14 @@ module Google
|
|
294
322
|
#
|
295
323
|
# Example of a YAML configuration::
|
296
324
|
#
|
297
|
-
#
|
298
|
-
#
|
325
|
+
# publishing:
|
326
|
+
# method_settings:
|
299
327
|
# - selector: google.cloud.speech.v2.Speech.BatchRecognize
|
300
328
|
# long_running:
|
301
|
-
# initial_poll_delay:
|
302
|
-
# seconds: 60 # 1 minute
|
329
|
+
# initial_poll_delay: 60s # 1 minute
|
303
330
|
# poll_delay_multiplier: 1.5
|
304
|
-
# max_poll_delay:
|
305
|
-
#
|
306
|
-
# total_poll_timeout:
|
307
|
-
# seconds: 54000 # 90 minutes
|
331
|
+
# max_poll_delay: 360s # 6 minutes
|
332
|
+
# total_poll_timeout: 54000s # 90 minutes
|
308
333
|
# @!attribute [rw] auto_populated_fields
|
309
334
|
# @return [::Array<::String>]
|
310
335
|
# List of top-level fields of the request message, that should be
|
@@ -313,8 +338,8 @@ module Google
|
|
313
338
|
#
|
314
339
|
# Example of a YAML configuration:
|
315
340
|
#
|
316
|
-
#
|
317
|
-
#
|
341
|
+
# publishing:
|
342
|
+
# method_settings:
|
318
343
|
# - selector: google.example.v1.ExampleService.CreateExample
|
319
344
|
# auto_populated_fields:
|
320
345
|
# - request_id
|
@@ -124,8 +124,13 @@ module Google
|
|
124
124
|
# @return [::String]
|
125
125
|
# The plural name used in the resource name and permission names, such as
|
126
126
|
# 'projects' for the resource name of 'projects/\\{project}' and the permission
|
127
|
-
# name of 'cloudresourcemanager.googleapis.com/projects.get'.
|
128
|
-
#
|
127
|
+
# name of 'cloudresourcemanager.googleapis.com/projects.get'. One exception
|
128
|
+
# to this is for Nested Collections that have stuttering names, as defined
|
129
|
+
# in [AIP-122](https://google.aip.dev/122#nested-collections), where the
|
130
|
+
# collection ID in the resource name pattern does not necessarily directly
|
131
|
+
# match the `plural` value.
|
132
|
+
#
|
133
|
+
# It is the same concept of the `plural` field in k8s CRD spec
|
129
134
|
# https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/
|
130
135
|
#
|
131
136
|
# Note: The plural form is required even for singleton resources. See
|
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.
|
4
|
+
version: 1.0.1
|
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-
|
11
|
+
date: 2024-08-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|