google-cloud-recommender-v1 0.8.2 → 0.8.3
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5488093b5feb0b5ddd3f806ed90d4aa8a1d3e0395fd007b30e39aebfc6a45fa2
|
4
|
+
data.tar.gz: f222ff3412c018c1abd1eb08de8335af5b617971f9a0e6dbd34b896c70f46186
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 73809c464512b4e91df84510dc336370b9b7cccad4fa724e8f2ba94883cc9ac8d495caf774be34846fb26a62e85eac27e403e448de92e373adae3b50316ff3f4
|
7
|
+
data.tar.gz: 270921738c6677af4b40c64c442098125db05f96cccef4f0d21a77116fc6af3cb61e485bcd08c215fb4fcb85a14cd14ca24b19762676d3a5d7324a4a60642b31
|
@@ -44,13 +44,12 @@ module Google
|
|
44
44
|
# See {::Google::Cloud::Recommender::V1::Recommender::Client::Configuration}
|
45
45
|
# for a description of the configuration fields.
|
46
46
|
#
|
47
|
-
#
|
47
|
+
# @example
|
48
48
|
#
|
49
|
-
#
|
50
|
-
#
|
51
|
-
#
|
52
|
-
#
|
53
|
-
# end
|
49
|
+
# # Modify the configuration for all Recommender clients
|
50
|
+
# ::Google::Cloud::Recommender::V1::Recommender::Client.configure do |config|
|
51
|
+
# config.timeout = 10.0
|
52
|
+
# end
|
54
53
|
#
|
55
54
|
# @yield [config] Configure the Client client.
|
56
55
|
# @yieldparam config [Client::Configuration]
|
@@ -125,19 +124,15 @@ module Google
|
|
125
124
|
##
|
126
125
|
# Create a new Recommender client object.
|
127
126
|
#
|
128
|
-
#
|
129
|
-
#
|
130
|
-
# To create a new Recommender client with the default
|
131
|
-
# configuration:
|
127
|
+
# @example
|
132
128
|
#
|
133
|
-
#
|
129
|
+
# # Create a client using the default configuration
|
130
|
+
# client = ::Google::Cloud::Recommender::V1::Recommender::Client.new
|
134
131
|
#
|
135
|
-
#
|
136
|
-
#
|
137
|
-
#
|
138
|
-
#
|
139
|
-
# config.timeout = 10.0
|
140
|
-
# end
|
132
|
+
# # Create a client using a custom configuration
|
133
|
+
# client = ::Google::Cloud::Recommender::V1::Recommender::Client.new do |config|
|
134
|
+
# config.timeout = 10.0
|
135
|
+
# end
|
141
136
|
#
|
142
137
|
# @yield [config] Configure the Recommender client.
|
143
138
|
# @yieldparam config [Client::Configuration]
|
@@ -157,10 +152,9 @@ module Google
|
|
157
152
|
|
158
153
|
# Create credentials
|
159
154
|
credentials = @config.credentials
|
160
|
-
# Use self-signed JWT if the
|
155
|
+
# Use self-signed JWT if the endpoint is unchanged from default,
|
161
156
|
# but only if the default endpoint does not have a region prefix.
|
162
|
-
enable_self_signed_jwt = @config.
|
163
|
-
@config.endpoint == Client.configure.endpoint &&
|
157
|
+
enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
|
164
158
|
!@config.endpoint.split(".").first.include?("-")
|
165
159
|
credentials ||= Credentials.default scope: @config.scope,
|
166
160
|
enable_self_signed_jwt: enable_self_signed_jwt
|
@@ -259,7 +253,9 @@ module Google
|
|
259
253
|
options.apply_defaults timeout: @config.rpcs.list_insights.timeout,
|
260
254
|
metadata: metadata,
|
261
255
|
retry_policy: @config.rpcs.list_insights.retry_policy
|
262
|
-
|
256
|
+
|
257
|
+
options.apply_defaults timeout: @config.timeout,
|
258
|
+
metadata: @config.metadata,
|
263
259
|
retry_policy: @config.retry_policy
|
264
260
|
|
265
261
|
@recommender_stub.call_rpc :list_insights, request, options: options do |response, operation|
|
@@ -327,7 +323,9 @@ module Google
|
|
327
323
|
options.apply_defaults timeout: @config.rpcs.get_insight.timeout,
|
328
324
|
metadata: metadata,
|
329
325
|
retry_policy: @config.rpcs.get_insight.retry_policy
|
330
|
-
|
326
|
+
|
327
|
+
options.apply_defaults timeout: @config.timeout,
|
328
|
+
metadata: @config.metadata,
|
331
329
|
retry_policy: @config.retry_policy
|
332
330
|
|
333
331
|
@recommender_stub.call_rpc :get_insight, request, options: options do |response, operation|
|
@@ -403,7 +401,9 @@ module Google
|
|
403
401
|
options.apply_defaults timeout: @config.rpcs.mark_insight_accepted.timeout,
|
404
402
|
metadata: metadata,
|
405
403
|
retry_policy: @config.rpcs.mark_insight_accepted.retry_policy
|
406
|
-
|
404
|
+
|
405
|
+
options.apply_defaults timeout: @config.timeout,
|
406
|
+
metadata: @config.metadata,
|
407
407
|
retry_policy: @config.retry_policy
|
408
408
|
|
409
409
|
@recommender_stub.call_rpc :mark_insight_accepted, request, options: options do |response, operation|
|
@@ -492,7 +492,9 @@ module Google
|
|
492
492
|
options.apply_defaults timeout: @config.rpcs.list_recommendations.timeout,
|
493
493
|
metadata: metadata,
|
494
494
|
retry_policy: @config.rpcs.list_recommendations.retry_policy
|
495
|
-
|
495
|
+
|
496
|
+
options.apply_defaults timeout: @config.timeout,
|
497
|
+
metadata: @config.metadata,
|
496
498
|
retry_policy: @config.retry_policy
|
497
499
|
|
498
500
|
@recommender_stub.call_rpc :list_recommendations, request, options: options do |response, operation|
|
@@ -560,7 +562,9 @@ module Google
|
|
560
562
|
options.apply_defaults timeout: @config.rpcs.get_recommendation.timeout,
|
561
563
|
metadata: metadata,
|
562
564
|
retry_policy: @config.rpcs.get_recommendation.retry_policy
|
563
|
-
|
565
|
+
|
566
|
+
options.apply_defaults timeout: @config.timeout,
|
567
|
+
metadata: @config.metadata,
|
564
568
|
retry_policy: @config.retry_policy
|
565
569
|
|
566
570
|
@recommender_stub.call_rpc :get_recommendation, request, options: options do |response, operation|
|
@@ -642,7 +646,9 @@ module Google
|
|
642
646
|
options.apply_defaults timeout: @config.rpcs.mark_recommendation_claimed.timeout,
|
643
647
|
metadata: metadata,
|
644
648
|
retry_policy: @config.rpcs.mark_recommendation_claimed.retry_policy
|
645
|
-
|
649
|
+
|
650
|
+
options.apply_defaults timeout: @config.timeout,
|
651
|
+
metadata: @config.metadata,
|
646
652
|
retry_policy: @config.retry_policy
|
647
653
|
|
648
654
|
@recommender_stub.call_rpc :mark_recommendation_claimed, request, options: options do |response, operation|
|
@@ -725,7 +731,9 @@ module Google
|
|
725
731
|
options.apply_defaults timeout: @config.rpcs.mark_recommendation_succeeded.timeout,
|
726
732
|
metadata: metadata,
|
727
733
|
retry_policy: @config.rpcs.mark_recommendation_succeeded.retry_policy
|
728
|
-
|
734
|
+
|
735
|
+
options.apply_defaults timeout: @config.timeout,
|
736
|
+
metadata: @config.metadata,
|
729
737
|
retry_policy: @config.retry_policy
|
730
738
|
|
731
739
|
@recommender_stub.call_rpc :mark_recommendation_succeeded, request, options: options do |response, operation|
|
@@ -808,7 +816,9 @@ module Google
|
|
808
816
|
options.apply_defaults timeout: @config.rpcs.mark_recommendation_failed.timeout,
|
809
817
|
metadata: metadata,
|
810
818
|
retry_policy: @config.rpcs.mark_recommendation_failed.retry_policy
|
811
|
-
|
819
|
+
|
820
|
+
options.apply_defaults timeout: @config.timeout,
|
821
|
+
metadata: @config.metadata,
|
812
822
|
retry_policy: @config.retry_policy
|
813
823
|
|
814
824
|
@recommender_stub.call_rpc :mark_recommendation_failed, request, options: options do |response, operation|
|
@@ -832,22 +842,21 @@ module Google
|
|
832
842
|
# Configuration can be applied globally to all clients, or to a single client
|
833
843
|
# on construction.
|
834
844
|
#
|
835
|
-
#
|
836
|
-
#
|
837
|
-
#
|
838
|
-
# to 20 seconds,
|
839
|
-
#
|
840
|
-
#
|
841
|
-
#
|
842
|
-
#
|
843
|
-
#
|
844
|
-
#
|
845
|
-
#
|
846
|
-
#
|
847
|
-
#
|
848
|
-
#
|
849
|
-
#
|
850
|
-
# end
|
845
|
+
# @example
|
846
|
+
#
|
847
|
+
# # Modify the global config, setting the timeout for
|
848
|
+
# # list_insights to 20 seconds,
|
849
|
+
# # and all remaining timeouts to 10 seconds.
|
850
|
+
# ::Google::Cloud::Recommender::V1::Recommender::Client.configure do |config|
|
851
|
+
# config.timeout = 10.0
|
852
|
+
# config.rpcs.list_insights.timeout = 20.0
|
853
|
+
# end
|
854
|
+
#
|
855
|
+
# # Apply the above configuration only to a new client.
|
856
|
+
# client = ::Google::Cloud::Recommender::V1::Recommender::Client.new do |config|
|
857
|
+
# config.timeout = 10.0
|
858
|
+
# config.rpcs.list_insights.timeout = 20.0
|
859
|
+
# end
|
851
860
|
#
|
852
861
|
# @!attribute [rw] endpoint
|
853
862
|
# The hostname or hostname:port of the service endpoint.
|
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.8.
|
4
|
+
version: 0.8.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-08-11 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
|
+
version: '0.7'
|
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.
|
29
|
+
version: '0.7'
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 2.a
|