google-cloud-recommender-v1 0.8.2 → 0.8.3

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: ec7756e9a0e31fde382f9706da2e18cae67b33c3083354b791f233300ce6d665
4
- data.tar.gz: 80c72c0fd3338f19c232ca38ea0bc35f56724875e3a2b64bc8c08748ea43cc85
3
+ metadata.gz: 5488093b5feb0b5ddd3f806ed90d4aa8a1d3e0395fd007b30e39aebfc6a45fa2
4
+ data.tar.gz: f222ff3412c018c1abd1eb08de8335af5b617971f9a0e6dbd34b896c70f46186
5
5
  SHA512:
6
- metadata.gz: 0b15073ad1232c4bd29f38729906f24e2d9c20a21560ae022d0ca993ecfe6f46b89770d0122911a93e5e245d9aa66df4281bf2493d70126f87c4581e29d1802c
7
- data.tar.gz: 13ce52ff348219586b1837d5fbf5ee672f554b48da8524e4d4a670544a281a994bccd7bf2028059f06e910d4aae64f973eaee4662146dfcb99fa88db08d56b22
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
- # ## Example
47
+ # @example
48
48
  #
49
- # To modify the configuration for all Recommender clients:
50
- #
51
- # ::Google::Cloud::Recommender::V1::Recommender::Client.configure do |config|
52
- # config.timeout = 10.0
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
- # ## Examples
129
- #
130
- # To create a new Recommender client with the default
131
- # configuration:
127
+ # @example
132
128
  #
133
- # client = ::Google::Cloud::Recommender::V1::Recommender::Client.new
129
+ # # Create a client using the default configuration
130
+ # client = ::Google::Cloud::Recommender::V1::Recommender::Client.new
134
131
  #
135
- # To create a new Recommender client with a custom
136
- # configuration:
137
- #
138
- # client = ::Google::Cloud::Recommender::V1::Recommender::Client.new do |config|
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 scope and endpoint are unchanged from default,
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.scope == Client.configure.scope &&
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
- options.apply_defaults metadata: @config.metadata,
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
- options.apply_defaults metadata: @config.metadata,
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
- options.apply_defaults metadata: @config.metadata,
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
- options.apply_defaults metadata: @config.metadata,
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
- options.apply_defaults metadata: @config.metadata,
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
- options.apply_defaults metadata: @config.metadata,
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
- options.apply_defaults metadata: @config.metadata,
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
- options.apply_defaults metadata: @config.metadata,
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
- # # Examples
836
- #
837
- # To modify the global config, setting the timeout for list_insights
838
- # to 20 seconds, and all remaining timeouts to 10 seconds:
839
- #
840
- # ::Google::Cloud::Recommender::V1::Recommender::Client.configure do |config|
841
- # config.timeout = 10.0
842
- # config.rpcs.list_insights.timeout = 20.0
843
- # end
844
- #
845
- # To apply the above configuration only to a new client:
846
- #
847
- # client = ::Google::Cloud::Recommender::V1::Recommender::Client.new do |config|
848
- # config.timeout = 10.0
849
- # config.rpcs.list_insights.timeout = 20.0
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.
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Recommender
23
23
  module V1
24
- VERSION = "0.8.2"
24
+ VERSION = "0.8.3"
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.8.2
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-07-12 00:00:00.000000000 Z
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.5'
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.5'
29
+ version: '0.7'
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a