google-cloud-recommender-v1 0.14.0 → 0.15.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: 9b4297f40d6baffecbcd75a8d86f600d16d39a1574de8826c43853ecfd79d30e
4
- data.tar.gz: 335b30dea992cda14379fec2ea54c931abb5628b6bbfcfdbbf15bf8e9b9c5446
3
+ metadata.gz: 3864f3f087240220a4454006575f9ef9ec9273072ee9e29d6435eade578af0ce
4
+ data.tar.gz: 5bd199e5e146e2339a14f79b0eaf4fa99e4cb073a6f06f4b0580cb36a29b671e
5
5
  SHA512:
6
- metadata.gz: dfea89a83975994db3e7cdfa1be6b9453f987797b1502f2cea6e24f8a95d8b9324ca5fc8be8098b9837b2987fcda9fb9ddc02ba8606a59b90039878e973321c7
7
- data.tar.gz: 7fd273321c43f41fe04e7b2f18de9870319c0365df08c8b42b9989a267e699e9f0ac08d69ed38b02a307112b474dd3839c8e877f851fb3e5143ff882b2d51848
6
+ metadata.gz: a88a56c763df943976f660a345982ba3e89c19ef68e8d325108ac47623261a66adba501d8f2f2a40de508ccbf45ce97d9718b4fac62ee363177c3d7e5963390b
7
+ data.tar.gz: 9c968f0b3adee00085798874382def1149b6abcb0af6b5dfbe31b92697b69a68cc054ad97d1fe00a273f75ffa2c623c81e6a642694aa3d4a6dc186554220c49f
@@ -169,7 +169,8 @@ module Google
169
169
  credentials: credentials,
170
170
  endpoint: @config.endpoint,
171
171
  channel_args: @config.channel_args,
172
- interceptors: @config.interceptors
172
+ interceptors: @config.interceptors,
173
+ channel_pool_config: @config.channel_pool
173
174
  )
174
175
  end
175
176
 
@@ -1611,6 +1612,14 @@ module Google
1611
1612
  end
1612
1613
  end
1613
1614
 
1615
+ ##
1616
+ # Configuration for the channel pool
1617
+ # @return [::Gapic::ServiceStub::ChannelPool::Configuration]
1618
+ #
1619
+ def channel_pool
1620
+ @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
1621
+ end
1622
+
1614
1623
  ##
1615
1624
  # Configuration RPC class for the Recommender API.
1616
1625
  #
@@ -241,6 +241,26 @@ module Google
241
241
  # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Recommender::V1::Insight>]
242
242
  #
243
243
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
244
+ #
245
+ # @example Basic example
246
+ # require "google/cloud/recommender/v1"
247
+ #
248
+ # # Create a client object. The client can be reused for multiple calls.
249
+ # client = Google::Cloud::Recommender::V1::Recommender::Rest::Client.new
250
+ #
251
+ # # Create a request. To set request fields, pass in keyword arguments.
252
+ # request = Google::Cloud::Recommender::V1::ListInsightsRequest.new
253
+ #
254
+ # # Call the list_insights method.
255
+ # result = client.list_insights request
256
+ #
257
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
258
+ # # over elements, and API calls will be issued to fetch pages as needed.
259
+ # result.each do |item|
260
+ # # Each element is of type ::Google::Cloud::Recommender::V1::Insight.
261
+ # p item
262
+ # end
263
+ #
244
264
  def list_insights request, options = nil
245
265
  raise ::ArgumentError, "request must be provided" if request.nil?
246
266
 
@@ -305,6 +325,22 @@ module Google
305
325
  # @return [::Google::Cloud::Recommender::V1::Insight]
306
326
  #
307
327
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
328
+ #
329
+ # @example Basic example
330
+ # require "google/cloud/recommender/v1"
331
+ #
332
+ # # Create a client object. The client can be reused for multiple calls.
333
+ # client = Google::Cloud::Recommender::V1::Recommender::Rest::Client.new
334
+ #
335
+ # # Create a request. To set request fields, pass in keyword arguments.
336
+ # request = Google::Cloud::Recommender::V1::GetInsightRequest.new
337
+ #
338
+ # # Call the get_insight method.
339
+ # result = client.get_insight request
340
+ #
341
+ # # The returned object is of type Google::Cloud::Recommender::V1::Insight.
342
+ # p result
343
+ #
308
344
  def get_insight request, options = nil
309
345
  raise ::ArgumentError, "request must be provided" if request.nil?
310
346
 
@@ -377,6 +413,22 @@ module Google
377
413
  # @return [::Google::Cloud::Recommender::V1::Insight]
378
414
  #
379
415
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
416
+ #
417
+ # @example Basic example
418
+ # require "google/cloud/recommender/v1"
419
+ #
420
+ # # Create a client object. The client can be reused for multiple calls.
421
+ # client = Google::Cloud::Recommender::V1::Recommender::Rest::Client.new
422
+ #
423
+ # # Create a request. To set request fields, pass in keyword arguments.
424
+ # request = Google::Cloud::Recommender::V1::MarkInsightAcceptedRequest.new
425
+ #
426
+ # # Call the mark_insight_accepted method.
427
+ # result = client.mark_insight_accepted request
428
+ #
429
+ # # The returned object is of type Google::Cloud::Recommender::V1::Insight.
430
+ # p result
431
+ #
380
432
  def mark_insight_accepted request, options = nil
381
433
  raise ::ArgumentError, "request must be provided" if request.nil?
382
434
 
@@ -487,6 +539,26 @@ module Google
487
539
  # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Recommender::V1::Recommendation>]
488
540
  #
489
541
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
542
+ #
543
+ # @example Basic example
544
+ # require "google/cloud/recommender/v1"
545
+ #
546
+ # # Create a client object. The client can be reused for multiple calls.
547
+ # client = Google::Cloud::Recommender::V1::Recommender::Rest::Client.new
548
+ #
549
+ # # Create a request. To set request fields, pass in keyword arguments.
550
+ # request = Google::Cloud::Recommender::V1::ListRecommendationsRequest.new
551
+ #
552
+ # # Call the list_recommendations method.
553
+ # result = client.list_recommendations request
554
+ #
555
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
556
+ # # over elements, and API calls will be issued to fetch pages as needed.
557
+ # result.each do |item|
558
+ # # Each element is of type ::Google::Cloud::Recommender::V1::Recommendation.
559
+ # p item
560
+ # end
561
+ #
490
562
  def list_recommendations request, options = nil
491
563
  raise ::ArgumentError, "request must be provided" if request.nil?
492
564
 
@@ -551,6 +623,22 @@ module Google
551
623
  # @return [::Google::Cloud::Recommender::V1::Recommendation]
552
624
  #
553
625
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
626
+ #
627
+ # @example Basic example
628
+ # require "google/cloud/recommender/v1"
629
+ #
630
+ # # Create a client object. The client can be reused for multiple calls.
631
+ # client = Google::Cloud::Recommender::V1::Recommender::Rest::Client.new
632
+ #
633
+ # # Create a request. To set request fields, pass in keyword arguments.
634
+ # request = Google::Cloud::Recommender::V1::GetRecommendationRequest.new
635
+ #
636
+ # # Call the get_recommendation method.
637
+ # result = client.get_recommendation request
638
+ #
639
+ # # The returned object is of type Google::Cloud::Recommender::V1::Recommendation.
640
+ # p result
641
+ #
554
642
  def get_recommendation request, options = nil
555
643
  raise ::ArgumentError, "request must be provided" if request.nil?
556
644
 
@@ -623,6 +711,22 @@ module Google
623
711
  # @return [::Google::Cloud::Recommender::V1::Recommendation]
624
712
  #
625
713
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
714
+ #
715
+ # @example Basic example
716
+ # require "google/cloud/recommender/v1"
717
+ #
718
+ # # Create a client object. The client can be reused for multiple calls.
719
+ # client = Google::Cloud::Recommender::V1::Recommender::Rest::Client.new
720
+ #
721
+ # # Create a request. To set request fields, pass in keyword arguments.
722
+ # request = Google::Cloud::Recommender::V1::MarkRecommendationDismissedRequest.new
723
+ #
724
+ # # Call the mark_recommendation_dismissed method.
725
+ # result = client.mark_recommendation_dismissed request
726
+ #
727
+ # # The returned object is of type Google::Cloud::Recommender::V1::Recommendation.
728
+ # p result
729
+ #
626
730
  def mark_recommendation_dismissed request, options = nil
627
731
  raise ::ArgumentError, "request must be provided" if request.nil?
628
732
 
@@ -701,6 +805,22 @@ module Google
701
805
  # @return [::Google::Cloud::Recommender::V1::Recommendation]
702
806
  #
703
807
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
808
+ #
809
+ # @example Basic example
810
+ # require "google/cloud/recommender/v1"
811
+ #
812
+ # # Create a client object. The client can be reused for multiple calls.
813
+ # client = Google::Cloud::Recommender::V1::Recommender::Rest::Client.new
814
+ #
815
+ # # Create a request. To set request fields, pass in keyword arguments.
816
+ # request = Google::Cloud::Recommender::V1::MarkRecommendationClaimedRequest.new
817
+ #
818
+ # # Call the mark_recommendation_claimed method.
819
+ # result = client.mark_recommendation_claimed request
820
+ #
821
+ # # The returned object is of type Google::Cloud::Recommender::V1::Recommendation.
822
+ # p result
823
+ #
704
824
  def mark_recommendation_claimed request, options = nil
705
825
  raise ::ArgumentError, "request must be provided" if request.nil?
706
826
 
@@ -780,6 +900,22 @@ module Google
780
900
  # @return [::Google::Cloud::Recommender::V1::Recommendation]
781
901
  #
782
902
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
903
+ #
904
+ # @example Basic example
905
+ # require "google/cloud/recommender/v1"
906
+ #
907
+ # # Create a client object. The client can be reused for multiple calls.
908
+ # client = Google::Cloud::Recommender::V1::Recommender::Rest::Client.new
909
+ #
910
+ # # Create a request. To set request fields, pass in keyword arguments.
911
+ # request = Google::Cloud::Recommender::V1::MarkRecommendationSucceededRequest.new
912
+ #
913
+ # # Call the mark_recommendation_succeeded method.
914
+ # result = client.mark_recommendation_succeeded request
915
+ #
916
+ # # The returned object is of type Google::Cloud::Recommender::V1::Recommendation.
917
+ # p result
918
+ #
783
919
  def mark_recommendation_succeeded request, options = nil
784
920
  raise ::ArgumentError, "request must be provided" if request.nil?
785
921
 
@@ -859,6 +995,22 @@ module Google
859
995
  # @return [::Google::Cloud::Recommender::V1::Recommendation]
860
996
  #
861
997
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
998
+ #
999
+ # @example Basic example
1000
+ # require "google/cloud/recommender/v1"
1001
+ #
1002
+ # # Create a client object. The client can be reused for multiple calls.
1003
+ # client = Google::Cloud::Recommender::V1::Recommender::Rest::Client.new
1004
+ #
1005
+ # # Create a request. To set request fields, pass in keyword arguments.
1006
+ # request = Google::Cloud::Recommender::V1::MarkRecommendationFailedRequest.new
1007
+ #
1008
+ # # Call the mark_recommendation_failed method.
1009
+ # result = client.mark_recommendation_failed request
1010
+ #
1011
+ # # The returned object is of type Google::Cloud::Recommender::V1::Recommendation.
1012
+ # p result
1013
+ #
862
1014
  def mark_recommendation_failed request, options = nil
863
1015
  raise ::ArgumentError, "request must be provided" if request.nil?
864
1016
 
@@ -932,6 +1084,22 @@ module Google
932
1084
  # @return [::Google::Cloud::Recommender::V1::RecommenderConfig]
933
1085
  #
934
1086
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1087
+ #
1088
+ # @example Basic example
1089
+ # require "google/cloud/recommender/v1"
1090
+ #
1091
+ # # Create a client object. The client can be reused for multiple calls.
1092
+ # client = Google::Cloud::Recommender::V1::Recommender::Rest::Client.new
1093
+ #
1094
+ # # Create a request. To set request fields, pass in keyword arguments.
1095
+ # request = Google::Cloud::Recommender::V1::GetRecommenderConfigRequest.new
1096
+ #
1097
+ # # Call the get_recommender_config method.
1098
+ # result = client.get_recommender_config request
1099
+ #
1100
+ # # The returned object is of type Google::Cloud::Recommender::V1::RecommenderConfig.
1101
+ # p result
1102
+ #
935
1103
  def get_recommender_config request, options = nil
936
1104
  raise ::ArgumentError, "request must be provided" if request.nil?
937
1105
 
@@ -1000,6 +1168,22 @@ module Google
1000
1168
  # @return [::Google::Cloud::Recommender::V1::RecommenderConfig]
1001
1169
  #
1002
1170
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1171
+ #
1172
+ # @example Basic example
1173
+ # require "google/cloud/recommender/v1"
1174
+ #
1175
+ # # Create a client object. The client can be reused for multiple calls.
1176
+ # client = Google::Cloud::Recommender::V1::Recommender::Rest::Client.new
1177
+ #
1178
+ # # Create a request. To set request fields, pass in keyword arguments.
1179
+ # request = Google::Cloud::Recommender::V1::UpdateRecommenderConfigRequest.new
1180
+ #
1181
+ # # Call the update_recommender_config method.
1182
+ # result = client.update_recommender_config request
1183
+ #
1184
+ # # The returned object is of type Google::Cloud::Recommender::V1::RecommenderConfig.
1185
+ # p result
1186
+ #
1003
1187
  def update_recommender_config request, options = nil
1004
1188
  raise ::ArgumentError, "request must be provided" if request.nil?
1005
1189
 
@@ -1073,6 +1257,22 @@ module Google
1073
1257
  # @return [::Google::Cloud::Recommender::V1::InsightTypeConfig]
1074
1258
  #
1075
1259
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1260
+ #
1261
+ # @example Basic example
1262
+ # require "google/cloud/recommender/v1"
1263
+ #
1264
+ # # Create a client object. The client can be reused for multiple calls.
1265
+ # client = Google::Cloud::Recommender::V1::Recommender::Rest::Client.new
1266
+ #
1267
+ # # Create a request. To set request fields, pass in keyword arguments.
1268
+ # request = Google::Cloud::Recommender::V1::GetInsightTypeConfigRequest.new
1269
+ #
1270
+ # # Call the get_insight_type_config method.
1271
+ # result = client.get_insight_type_config request
1272
+ #
1273
+ # # The returned object is of type Google::Cloud::Recommender::V1::InsightTypeConfig.
1274
+ # p result
1275
+ #
1076
1276
  def get_insight_type_config request, options = nil
1077
1277
  raise ::ArgumentError, "request must be provided" if request.nil?
1078
1278
 
@@ -1141,6 +1341,22 @@ module Google
1141
1341
  # @return [::Google::Cloud::Recommender::V1::InsightTypeConfig]
1142
1342
  #
1143
1343
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1344
+ #
1345
+ # @example Basic example
1346
+ # require "google/cloud/recommender/v1"
1347
+ #
1348
+ # # Create a client object. The client can be reused for multiple calls.
1349
+ # client = Google::Cloud::Recommender::V1::Recommender::Rest::Client.new
1350
+ #
1351
+ # # Create a request. To set request fields, pass in keyword arguments.
1352
+ # request = Google::Cloud::Recommender::V1::UpdateInsightTypeConfigRequest.new
1353
+ #
1354
+ # # Call the update_insight_type_config method.
1355
+ # result = client.update_insight_type_config request
1356
+ #
1357
+ # # The returned object is of type Google::Cloud::Recommender::V1::InsightTypeConfig.
1358
+ # p result
1359
+ #
1144
1360
  def update_insight_type_config request, options = nil
1145
1361
  raise ::ArgumentError, "request must be provided" if request.nil?
1146
1362
 
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Recommender
23
23
  module V1
24
- VERSION = "0.14.0"
24
+ VERSION = "0.15.0"
25
25
  end
26
26
  end
27
27
  end
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.14.0
4
+ version: 0.15.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: 2023-09-07 00:00:00.000000000 Z
11
+ date: 2023-09-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 0.19.1
19
+ version: 0.20.0
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: 2.a
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: 0.19.1
29
+ version: 0.20.0
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a